aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2019-06-26 13:45:09 +0200
committerCamil Staps2019-06-26 13:45:09 +0200
commit24d094c5d7b01f8c69fdaca93366f45a488a4c64 (patch)
tree8c45fb1b809441703ccb4c9a6ced1b8aef600c0f
parentEnable git rerere (diff)
Add mod-shift-S shortcut to shutdown with confirmation (I disabled the power button in /etc/systemd/logind.conf)
-rw-r--r--i3/.i3/config3
1 files changed, 2 insertions, 1 deletions
diff --git a/i3/.i3/config b/i3/.i3/config
index 46c9769..a1580b8 100644
--- a/i3/.i3/config
+++ b/i3/.i3/config
@@ -95,10 +95,11 @@ bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
-# reload; restart in-place; exit and log out
+# reload; restart in-place; exit and shutdown
bindsym $mod+Shift+C reload
bindsym $mod+Shift+R exec "i3-nagbar -t warning -m 'You pressed the restart shortcut (Mod-Shift-R). Do you really want to restart i3?' -b 'Yes, restart i3' 'i3-msg restart'"
bindsym $mod+Shift+E exec "i3-nagbar -t warning -m 'You pressed the exit shortcut (Mod-Shift-E). Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
+bindsym $mod+Shift+S exec "i3-nagbar -m 'You pressed the shutdown shortcut (Mod-Shift-S). Do you really want to shutdown?' -b 'Yes, shutdown' 'shutdown now'"
bindsym $mod+r mode "resize"
mode "resize" {