diff options
Diffstat (limited to 'dot_config/sway/executable_power-menu.sh')
| -rw-r--r-- | dot_config/sway/executable_power-menu.sh | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/dot_config/sway/executable_power-menu.sh b/dot_config/sway/executable_power-menu.sh index edb5949..bb5cafa 100644 --- a/dot_config/sway/executable_power-menu.sh +++ b/dot_config/sway/executable_power-menu.sh @@ -3,19 +3,24 @@ set -eu choice=$(printf '%s\n' \ - " Lock" \ - " Suspend" \ - " Logout" \ - " Reboot" \ - " Poweroff" \ - | wofi --dmenu --hide-search --prompt='power' \ - --style "$HOME/.config/wofi/style.css") + " Lock" \ + " Suspend" \ + " Logout" \ + " Reboot" \ + " Poweroff" | + wofi --dmenu --hide-search --prompt='power' \ + --style "$HOME/.config/wofi/style.css") case "$choice" in - *Lock) playerctl -a pause; exec swaylock -f -e -c 000000 ;; - *Suspend) playerctl -a pause; exec systemctl suspend ;; - *Logout) exec swaymsg exit ;; - *Reboot) exec systemctl reboot ;; - *Poweroff) exec systemctl poweroff ;; + *Lock) + playerctl -a pause + exec swaylock -f -e -c 000000 + ;; + *Suspend) + playerctl -a pause + exec systemctl suspend + ;; + *Logout) exec swaymsg exit ;; + *Reboot) exec systemctl reboot ;; + *Poweroff) exec systemctl poweroff ;; esac - |
