aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway/executable_power-menu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/sway/executable_power-menu.sh')
-rw-r--r--dot_config/sway/executable_power-menu.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/dot_config/sway/executable_power-menu.sh b/dot_config/sway/executable_power-menu.sh
index 999259c..0a7de91 100644
--- a/dot_config/sway/executable_power-menu.sh
+++ b/dot_config/sway/executable_power-menu.sh
@@ -2,9 +2,10 @@
# Keyboard-driven power menu via wofi --dmenu (j/k navigation).
set -eu
+# Suspend entry intentionally omitted while suspend is disabled
+# system-wide. See etc/systemd/logind.conf.d/20-no-suspend.conf.
choice=$(printf '%s\n' \
" Lock" \
- " Suspend" \
" Logout" \
" Reboot" \
" Poweroff" |
@@ -17,10 +18,6 @@ case "$choice" in
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 ;;