
Thanks. I wasn't at all aware of that. I'll use the solution you suggested
then.
R.
On Sat, 12 Nov 2011 11:47:24 -0500,Brandon Allbery
On Sat, Nov 12, 2011 at 08:43, Ramon Diaz-Uriarte
wrote:
Thanks to both Daniel Wagner and Brandon Allbery for their suggestions.
I've ended up using Daniel's one because it seemed more similar to what I was thinking. I only changed the order of "yes\nno\n", to make the default be "no" since I very, very rarely exit xmonad (on purpose).
Daniel's solution has the potential for problems, because xmonad's main loop isn't processing events while it's running. (This is a common problem with most of the contrib functions that process input; they really need to do their input handling in the handleEventHook instead of opening a new connection to the X server. For those who keep track of such things, the possible failure mode is the same as with the infamous putSelection.)
-- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25. Facultad de Medicina (UAM) Arzobispo Morcillo, 4 28029 Madrid Spain
Phone: +34-91-497-2412 Email: rdiaz02@gmail.com ramon.diaz@iib.uam.es http://ligarto.org/rdiaz