This commit is contained in:
array-in-a-matrix 2022-01-12 15:58:43 -05:00
parent c6be2f0362
commit 0f6ad995ed

View file

@ -214,18 +214,19 @@ bindsym $mod+r mode "resize"
# }
#}
set $mode_system System (1) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (d) shutdown
set $mode_system 1 lock, 2 logout, 3 suspend, 4 hibernate, 5 reboot, 6 shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh lock, mode "default"
bindsym e exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh logout, mode "default"
bindsym s exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh suspend, mode "default"
bindsym h exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh hibernate, mode "default"
bindsym r exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh reboot, mode "default"
bindsym d exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh shutdown, mode "default"
bindsym 1 exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh lock, mode "default"
bindsym 2 exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh logout, mode "default"
bindsym 3 exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh suspend, mode "default"
bindsym 4 exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh hibernate, mode "default"
bindsym 5 exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh reboot, mode "default"
bindsym 6 exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+Shift+e mode "default"
}
bindsym $mod+Shift+e mode "$mode_system"