From 3b54f7a55b15076ba94e0ce961e2c452978ced5a Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 17 Nov 2024 12:33:46 +0000 Subject: Updated to work with FreeBSD using doas ( user in wheel group ) instead of loginctl. --- .local/bin/powermenu | 10 ++++------ 1 file 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 -- cgit v1.2.3