[Xmonad] Redefining modMask

Spencer Janssen sjanssen at cse.unl.edu
Fri Apr 13 19:25:52 EDT 2007


On Fri, 13 Apr 2007 13:25:23 +0200
"Bas van Dijk" <v.dijk.bas at gmail.com> wrote:

> Hello again,
> 
> I would like to assign my modMask to the windows key on my keyboard.
> 
> Using the xorg tool 'xev' I discovered that the keycode of my windows
> key is 115. However, setting modMask = 115 in Config.hs doesn't work.
> 
> Do I have to use a key symbol from Graphics.X11.Types for that? If so,
> which one?

You should look at the 'state' mask that xev reports rather than the
keycode (you should also turn off num/scroll/caps lock, because these
are also reported in state).


Cheers,
Spencer Janssen


More information about the Xmonad mailing list