[xmonad] mod-shift-q is Harmful
Ruben Gonzalez Arnau
rga at sdf.lonestar.org
Mon Dec 26 18:49:08 CET 2011
Hi,
If you just don't want to quit by error your X11 session (with your
running programs), you can do something like this.
/home/user/.xinitrc
while :; do
xmonad
if [ `echo -e 'no\nyes' | dmenu -p 'Do you really want to quit
xmonad?'` = "yes" ]; then
break
fi
done
So, if you say yes, X11 quits, if not, xmonad will be relaunched with
its programs, but it will not remember layouts and you maybe will need
to readjust manually some order apps, but it works as a workaround to
prevent kill x11.
Hope it helps.
On 12/26/2011 08:44 AM, Michael Witten wrote:
> I just lost a lot of computation when a long-running program of
> mine was unceremoniously destroyed by xmonad.
>
> Now, I take almost full responsibility for this mishap, because I
> *did* in fact instruct xmonad to obliterate my entire X11 session
> by issuing the keys `mod-shift-q'. However, that instruction was
> a mistake; I didn't at all have that action in mind when my
> fingers went for it---and I'm a longtime user who almost never
> presses that!
>
> A goal of xmonad is to make the user more efficient, but I think
> this kind of efficiency is not what is intended!
>
> I'm no fan of forcibly hand-holding people, but I think it would
> be wise at least to show people up front how to configure xmonad
> to confirm this request (especially if it can be determined that
> information would be destroyed). Even better, a vanilla xmonad
> should probably come already configured with such a basic safety
> mechanism (a power user who doesn't want to be pestered with
> such trivial second-guessing could disable it).
>
> Sincerely,
> Michael Witten
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
--
rga at sdf.lonestar.org
More information about the xmonad
mailing list