aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/sway
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/sway')
-rw-r--r--dot_config/sway/config6
-rw-r--r--dot_config/sway/executable_power-menu.sh7
2 files changed, 5 insertions, 8 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config
index 48e5993..817e7c4 100644
--- a/dot_config/sway/config
+++ b/dot_config/sway/config
@@ -173,7 +173,7 @@ bindsym $mod+Ctrl+bracketleft exec ~/.config/sway/brightness-osd.sh down
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86Bluetooth exec ~/.config/sway/bt-toggle.sh
bindsym XF86ScreenSaver exec "playerctl -a pause; swaylock -f -e -c 000000"
-bindsym XF86Sleep exec systemctl suspend
+bindsym XF86Sleep exec loginctl lock-session
bindsym XF86WLAN exec ~/.config/waybar/wifi-toggle.sh
bindsym XF86RFKill exec rfkill toggle all
@@ -225,13 +225,13 @@ bindsym $mod+z mode "qr"
# System / hardware submode — non-XF86 alternatives for the rarely used
# hardware toggles and TUI launchers above. Enter with Super+x; mnemonic
-# letters (b=bluetooth, w=wifi, r=rfkill, s=sleep, d=display,
+# letters (b=bluetooth, w=wifi, r=rfkill, s=lock-session, d=display,
# v=volume-mixer, k=keybinds, m=notification-picker).
mode "system" {
bindsym b exec ~/.config/sway/bt-toggle.sh, mode "default"
bindsym w exec ~/.config/waybar/wifi-toggle.sh, mode "default"
bindsym r exec rfkill toggle all, mode "default"
- bindsym s exec systemctl suspend, mode "default"
+ bindsym s exec loginctl lock-session, mode "default"
bindsym d exec ~/.config/sway/display-toggle.sh, mode "default"
bindsym v exec $term --class=floating -e pulsemixer, mode "default"
bindsym k exec $term --class=floating -e glow -p ~/dotfiles/KEYBINDS.md, mode "default"
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 ;;