From e9f1ecd2e55f9f256dcd0d355d5aa5cd8282eb40 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 2 Apr 2024 22:28:39 +0100 Subject: Updated for Void Linux --- .local/bin/powermenu | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to '.local/bin/powermenu') 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 -- cgit v1.2.3