added system → poweroff, reboot, logout, hibernate, suspend, switch_user

This commit is contained in:
Jesús 2019-04-17 19:26:20 -05:00
parent 867e1cf679
commit adf513ff42
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

15
config
View File

@ -272,6 +272,21 @@ mode "$mode_display" {
# Declare here the shortcut to bring the display selection menu
bindsym $mod+x mode "$mode_display"
# System poweroff, reboot, logout, hibernate, suspend, switch_user
set $mode_system System (e) logout, (u) switch_user, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym s exec --no-startup-id loginctl suspend, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id loginctl hibernate, mode "default"
bindsym r exec --no-startup-id loginctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Pause mode "$mode_system"
#open audio player
exec --no-startup-id audacious
#players global horkeys