From 75c840f84bbcca1a6334c523ab948bdc7c94cf28 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Thu, 19 Dec 2024 20:09:00 +0000 Subject: Added zzz to suspend option with lock now that suspend works in FreeBSD 14.2. --- .local/bin/powermenu.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/powermenu.sh b/.local/bin/powermenu.sh index 8d353c2..e7692e2 100755 --- a/.local/bin/powermenu.sh +++ b/.local/bin/powermenu.sh @@ -10,6 +10,8 @@ suspend=" Suspend" hibernate="󰒲 Hibernate" log_out="󰍃 Log Out" +lock="swaylock -f -i "$wallpaper"" + # Options passed to fuzzel options="$power_off\n$reboot\n$suspend\n$hibernate\n$log_out\n$lock_screen" lines="$(echo "$options" | grep -oF '\n' | wc -l)" @@ -26,10 +28,10 @@ case $chosen in doas reboot ;; "$suspend") - # $lock && loginctl suspend + $lock && zzz ;; "$hibernate") - # $lock && loginctl hibernate + # $lock && WIP ;; "$log_out") riverctl exit -- cgit v1.2.3