diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-12-19 20:09:00 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-12-19 20:09:00 +0000 |
commit | 75c840f84bbcca1a6334c523ab948bdc7c94cf28 (patch) | |
tree | d8e45d967a20ea7cc8a964f9c5c39489fd31b4a5 | |
parent | 9356ccbc0196babcfc2d076ad85a994d79cc0046 (diff) |
Added zzz to suspend option with lock now that suspend works in FreeBSD 14.2.
-rwxr-xr-x | .local/bin/powermenu.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 |