system mode menu + indenting
This commit is contained in:
@@ -205,7 +205,21 @@ bindsym $mod+semicolon mode "default"
|
|||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
bindsym $mod+semicolon mode "switch"
|
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
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||||
# finds out, if available)
|
# finds out, if available)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user