aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/powermenu
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/powermenu')
-rwxr-xr-x.local/bin/powermenu13
1 files changed, 7 insertions, 6 deletions
diff --git a/.local/bin/powermenu b/.local/bin/powermenu
index 30574bb..7fbf90f 100755
--- a/.local/bin/powermenu
+++ b/.local/bin/powermenu
@@ -1,5 +1,7 @@
#!/bin/bash
+read -r wallpaper<~/.cache/wallpaper
+
#### Options ###
power_off=" Shutdown"
reboot="󰜉 Reboot"
@@ -15,20 +17,19 @@ rofi_command="fuzzel -d -w 14 -l $((lines+1))"
chosen="$(echo -e "$options" | $rofi_command )"
case $chosen in
"$lock_screen")
- # swaylock -f -i ~/.cache/wallpaper --effect-blur 10x5 --clock --indicator --datestr "%a %d %b %Y"
- hyprlock
+ swaylock -f -i "$wallpaper"
;;
"$power_off")
- systemctl poweroff
+ logictl poweroff
;;
"$reboot")
- systemctl reboot
+ loginctl reboot
;;
"$suspend")
- $lock && systemctl suspend
+ $lock && loginctl suspend
;;
"$hibernate")
- $lock && systemctl hibernate
+ $lock && loginctl hibernate
;;
"$log_out")
#swaymsg exit