[xmonad] Further xmodmap and numlock woes

Brent Yorgey byorgey at seas.upenn.edu
Thu Mar 21 15:41:22 CET 2013

On Tue, Mar 19, 2013 at 03:46:58PM +0100, Thomas Løcke wrote:
> On Tue, Mar 19, 2013 at 3:39 PM, Brandon Allbery <allbery.b at gmail.com>wrote:
> >
> > Data.Monoid has both.
> >
> Thanks! My xmonad.hs file now compiles without error, so YAY!
> Did it work then?
> Well, yes and no. It works if xmonad is already running, ie. I open a
> terminal and enter xmodmap -e "clear mod2". The numlock key is now
> disabled, so clicking it, even frantically, does nothing and my mod key is
> still fully functional. It doesn't work if I add "clear mod2" to my
> .Xmodmap file though and neither does it work if I call xmodmap -e "clear
> mod2" from .xinitrc. xmonad starts up, the numlock key is disabled but my
> xmonad mod key doesn't work.
> So a couple of steps forward, and then one back.

In that case, does it work if you add

  spawn "xmodmap -e \"clear mod2\""

to your startupHook?


More information about the xmonad mailing list