diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-04-02 22:28:39 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-04-02 22:28:39 +0100 |
commit | e9f1ecd2e55f9f256dcd0d355d5aa5cd8282eb40 (patch) | |
tree | e9c81de18d40b2937697cd5184e41f34cd6a6666 /.local/bin | |
parent | 86d2ac2ab57ac028650222d89c8fa074cd229f4b (diff) |
Updated for Void Linux
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/powermenu | 13 |
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 |