From adf513ff4284022b401f73d92d07f1618bc9c52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 17 Apr 2019 19:26:20 -0500 Subject: [PATCH] =?UTF-8?q?added=20system=20=E2=86=92=20poweroff,=20reboot?= =?UTF-8?q?,=20logout,=20hibernate,=20suspend,=20switch=5Fuser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config b/config index 5f53546..e325472 100644 --- a/config +++ b/config @@ -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