From: Michael Stapelberg Date: Thu, 2 Aug 2012 14:17:24 +0000 (+0200) Subject: config: require confirmation when exiting i3 (Thanks Felicitus) X-Git-Tag: 4.3~150 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9191b569242c96e12762951fe049d40a03342bcd;hp=4cba4c89ad4d61709e764df6824317a2a771412a;p=i3%2Fi3 config: require confirmation when exiting i3 (Thanks Felicitus) Fixes #751 --- 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" {