system mode menu + indenting

This commit is contained in:
LinlyBoi
2024-04-18 14:56:14 +02:00
parent 3bddd6906f
commit b7f256eba7

View File

@@ -205,7 +205,21 @@ bindsym $mod+semicolon mode "default"
bindsym $mod+r mode "resize"
bindsym $mod+semicolon mode "switch"
# System mode menu
set $mode_system "What to do? (l) lock, (e) logout, (r) reboot, (s) suspend, (Shift+s) shutdown"
mode $mode_system {
bindsym l exec $screenlock; mode "default"
bindsym e exec swaymsg exit; mode "default"
bindsym r exec systemctl reboot; mode "default"
bindsym s exec systemctl suspend; mode "default"
bindsym Shift+s exec systemctl poweroff; mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
unbindsym $mod+Shift+e
bindsym $mod+Shift+e mode $mode_system
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)