aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway/executable_power-menu.sh
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-14 10:58:37 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-14 10:58:37 +0100
commit726005786ab398e89673bf8c141e50645f676c57 (patch)
treec6157391bfb7b41e4db1309b78b17f680f0c50c3 /dot_config/sway/executable_power-menu.sh
parentdb4c6bdcd2af6aa2b95f587974f34c0246f62cb8 (diff)
downloaddotfiles-726005786ab398e89673bf8c141e50645f676c57.tar.gz
dotfiles-726005786ab398e89673bf8c141e50645f676c57.tar.bz2
dotfiles-726005786ab398e89673bf8c141e50645f676c57.zip
style: apply shfmt/prettier/just fmt drift
Pure formatter output from shfmt (2-space indent, '|' line breaks), prettier (KEYBINDS.md), and 'just fmt' (justfile blank line). No behavior change.
Diffstat (limited to 'dot_config/sway/executable_power-menu.sh')
-rw-r--r--dot_config/sway/executable_power-menu.sh31
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
-