From db49043c1e958f8af433e2adbd3347838975393c Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 4 Jan 2015 14:28:02 -0500 Subject: i3exit --- i3/.i3/config | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'i3/.i3/config') diff --git a/i3/.i3/config b/i3/.i3/config index 5075095..77905fa 100644 --- a/i3/.i3/config +++ b/i3/.i3/config @@ -147,7 +147,7 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" +# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { @@ -250,6 +250,19 @@ bar { } } +set $mode_system System (l) lock, (e) logout, (r) reboot, (Shift+s) shutdown +mode "$mode_system" { + bindsym l exec --no-startup-id i3exit lock, mode "default" + bindsym e exec --no-startup-id i3exit logout, mode "default" + bindsym r exec --no-startup-id i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Shift+e mode "$mode_system" + exec --no-startup-id nm-applet exec --no-startup-id "pulseaudio --start" -- cgit v1.2.3-60-g2f50