From 9191b569242c96e12762951fe049d40a03342bcd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 2 Aug 2012 16:17:24 +0200 Subject: [PATCH] config: require confirmation when exiting i3 (Thanks Felicitus) Fixes #751 --- i3.config | 2 +- i3.config.keycodes | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/i3.config b/i3.config index 1a457fca..3225b973 100644 --- a/i3.config +++ b/i3.config @@ -103,7 +103,7 @@ bindsym Mod1+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym Mod1+Shift+r restart # exit i3 (logs you out of your X session) -bindsym Mod1+Shift+e exit +bindsym Mod1+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" { diff --git a/i3.config.keycodes b/i3.config.keycodes index e360fff9..2f014183 100644 --- a/i3.config.keycodes +++ b/i3.config.keycodes @@ -104,7 +104,7 @@ bindcode $mod+Shift+54 reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindcode $mod+Shift+27 restart # exit i3 (logs you out of your X session) -bindcode $mod+Shift+26 exit +bindcode $mod+Shift+26 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" { -- 2.39.5