aboutsummaryrefslogtreecommitdiff
path: root/scripts/powermenu
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmirenn/home/files/dotfiles/.config/scripts/powermenu (renamed from scripts/powermenu)11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/powermenu b/mirenn/home/files/dotfiles/.config/scripts/powermenu
index ef68e29..d118a69 100755
--- a/scripts/powermenu
+++ b/mirenn/home/files/dotfiles/.config/scripts/powermenu
@@ -1,4 +1,5 @@
-#!/usr/bin/fish
+#!/usr/bin/env fish
+
set poweroff ""
set reboot ""
set lock ""
@@ -10,17 +11,17 @@ set chosen (echo -e "$poweroff\n$reboot\n$lock\n$exit\n$sleep\n$hibernate" | rof
switch $chosen
case $poweroff
- shutdown now
+ loginctl poweroff
case $reboot
- reboot
+ loginctl reboot
case $lock
loginctl lock-session
case $exit
niri msg action quit
case $sleep
- systemctl suspend
+ loginctl suspend
case $hibernate
- systemctl hibernate
+ loginctl hibernate
case '*'
exit 1
end