aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-11-17 12:33:46 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-11-17 12:33:46 +0000
commit3b54f7a55b15076ba94e0ce961e2c452978ced5a (patch)
tree438eb5d6d95441c654eb1da3386040b37b321c24 /.local
parent356158be99451fa24320fb0c96a3dafda47989d4 (diff)
Updated to work with FreeBSD using doas ( user in wheel group ) instead of loginctl.
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/powermenu10
1 files changed, 4 insertions, 6 deletions
diff --git a/.local/bin/powermenu b/.local/bin/powermenu
index 31a8f8a..e1896b1 100755
--- a/.local/bin/powermenu
+++ b/.local/bin/powermenu
@@ -20,20 +20,18 @@ case $chosen in
swaylock -f -i "$wallpaper"
;;
"$power_off")
- loginctl poweroff
+ doas poweroff
;;
"$reboot")
- loginctl reboot
+ doas reboot
;;
"$suspend")
- $lock && loginctl suspend
+ # $lock && loginctl suspend
;;
"$hibernate")
- $lock && loginctl hibernate
+ # $lock && loginctl hibernate
;;
"$log_out")
- #swaymsg exit
- #loginctl terminate-session "${XDG_SESSION_ID-}"
riverctl exit
;;
esac