summaryrefslogtreecommitdiff
path: root/config/polybar/forest/scripts/powermenu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/polybar/forest/scripts/powermenu.sh')
-rwxr-xr-xconfig/polybar/forest/scripts/powermenu.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/polybar/forest/scripts/powermenu.sh b/config/polybar/forest/scripts/powermenu.sh
index 84eddf4..b3b0fb7 100755
--- a/config/polybar/forest/scripts/powermenu.sh
+++ b/config/polybar/forest/scripts/powermenu.sh
@@ -57,7 +57,9 @@ case $chosen in
fi
;;
$lock)
- if [[ -f /usr/bin/i3lock ]]; then
+ if [[ -f /usr/bin/i3lock-fancy ]]; then
+ i3lock-fancy
+ elif [[ -f /usr/bin/i3lock ]]; then
i3lock
elif [[ -f /usr/bin/betterlockscreen ]]; then
betterlockscreen -l
@@ -68,7 +70,7 @@ case $chosen in
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
mpc -q pause
amixer set Master mute
- systemctl suspend
+ croutonpowerd --suspend
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
exit 0
else