[xmonad] Not passing Mod key to applications

wagnerdm at seas.upenn.edu wagnerdm at seas.upenn.edu
Mon Feb 27 21:43:24 CET 2012


Quoting John Goerzen <jgoerzen at complete.org>:

> I'd rather have xmonad completely eat all Mod keypresses, and let no  
> other application, even those Windows RDP or VirtualBox sessions,  
> ever see it.  I don't really ever use it in Windows anyhow, so it's  
> just causing annoyance.
>
> Is there a quick trick to accomplish this?

Thanks for asking, because it prompted me to finally solve this  
long-standing annoyance in my own installation. =)

I now have the following line in my keybindings:

((0, xK_Super_L), return ()) -- make VirtualBox ignore stray hits of  
the Windows key when xmonad has the active grab

~d



More information about the xmonad mailing list