[xmonad] Further xmodmap and numlock woes

Marshall Lochbaum mwlochbaum at gmail.com
Tue Mar 19 15:42:12 CET 2013


The module you're looking for is Data.Monoid.

I have never really understood xmodmap, and I suspect it's broken in a
few ways. You can probably fix your problem by moving numlock to a
different keysym, like this:

xmodmap -e "keysym Num_Lock = F13"

Marshall

On Tue, Mar 19, 2013 at 02:59:25PM +0100, Thomas Løcke wrote:
> A while ago I wrote a post to this list about the problems that arose when I
> disabled numlock with xmodmap -e "clear mod2":
> 
> http://www.haskell.org/pipermail/xmonad/2013-February/013493.html
> 
> I ended up "fixing" the problem in the legacy application, so I didn't have to
> muck about with xmodmap. Or so I thought. Today it reared its ugly head again,
> once and for all telling me that I seriously need to _completely_ disable the
> numlock key.
> 
> My first step was to upgrade xmonad to 0.11 and then I tried xmodmap -e "clear
> mod2" again and of course it still didn't work: My mod key was now
> non-functional again. /sigh
> 
> Next step was to dig out the original suggestion from Adam:
> 
> 
> handleEventHook = ( \e -> case e of
>                                 MappingNotifyEvent {} -> return (All False)
>                                 _ -> mempty)
> 
> 
> I added the above to my xmonad.hs file and then it failed with this:
> 
> 
> 
> Not in scope: data constructor `All'
> 
> Not in scope: `mempty'
> 
> 
> I suspect I need to import something, but what? Here's my xmonad.hs file:
> 
> 
> https://gist.github.com/ThomasLocke/5196294
> 
> 
> Am I missing some crucial parts?
> 
> 
> :o)
> 
> Thomas L cke
> 
> 
> ps. I found xmonad at github: https://github.com/xmonad/xmonad is this an official repository?
> 

> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad




More information about the xmonad mailing list