Re: [i3] i3wm exit session

  • From: Bigby James <bigby.james@xxxxxxxxxxxxxxx>
  • To: Discussions/Questions about the i3 window manager <i3-discuss@xxxxxxxxxxxxx>
  • Date: Sun, 5 Apr 2015 09:23:16 -0500

On 04/05, Tony Crisci wrote:

Is there any way to add some snipe of code to solve it if I press many
times?

Change the binding to this

bindsym Mod1+Shift+e exec "pidof i3-nagbar || 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'"

More often than not, the simplest solution to a problem is the preferrable one.
You can hit several dozen keystrokes writing code to "correct" this "problem,"
or you can just hit one keystroke and train yourself to not compulsively do the
same thing over and over and over when there's no reason to. Incidentally, that
ugly yellow thing is called "i3-nagbar," emphasis on "nag." If it's annoying
you, it's doing its job. Personally I (and, I suspect, many other users) just
remove all mention of i3-nagbar from the configuration.

This whole thread reminds me of that old joke:

PATIENT: Doctor, it hurts when I do this...
DOCTOR: Then don't do that.

--
"A common mistake that people make when trying to design something completely
foolproof is to underestimate the ingenuity of complete fools." - Douglas Adams


Other related posts: