<div dir="ltr">A while ago I wrote a post to this list about the problems that arose when I disabled numlock with xmodmap <span style="color:rgb(0,0,0)">-e &quot;clear mod2&quot;:</span><div><span style="color:rgb(0,0,0)"><br>
</span></div><div><font color="#000000"><a href="http://www.haskell.org/pipermail/xmonad/2013-February/013493.html">http://www.haskell.org/pipermail/xmonad/2013-February/013493.html</a></font><br></div><div><font color="#000000"><br>
</font></div><div style><font color="#000000">I ended up &quot;fixing&quot; the problem in the legacy application, so I didn&#39;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.</font></div>
<div style><font color="#000000"><br></font></div><div style><font color="#000000">My first step was to upgrade xmonad to 0.11 and then I tried xmodmap -e &quot;clear mod2&quot; again and of course it still didn&#39;t work: My mod key was now non-functional again. /sigh</font></div>
<div style><font color="#000000"><br></font></div><div style><font color="#000000">Next step was to dig out the original suggestion from Adam:</font></div><div style><font color="#000000"><br></font></div><div style><pre style="color:rgb(0,0,0)">
handleEventHook = ( \e -&gt; case e of
                                MappingNotifyEvent {} -&gt; return (All False)
                                _ -&gt; mempty)</pre><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">I added the above to my xmonad.hs file and then it failed with this:</pre><pre style="color:rgb(0,0,0)">
<br></pre><pre style="color:rgb(0,0,0)">Not in scope: data constructor `All&#39;</pre><pre style="color:rgb(0,0,0)">Not in scope: `mempty&#39;</pre><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">I suspect I need to import something, but what? Here&#39;s my xmonad.hs file:</pre>
<pre style="color:rgb(0,0,0)"><br></pre><pre><font color="#000000"><a href="https://gist.github.com/ThomasLocke/5196294">https://gist.github.com/ThomasLocke/5196294</a><br></font></pre><pre><br></pre><pre style>Am I missing some crucial parts?</pre>
<pre style><br></pre><pre style>:o)</pre><pre style>Thomas Løcke</pre><pre style><br></pre><pre style>ps. I found xmonad at github: <a href="https://github.com/xmonad/xmonad" style="font-family:arial">https://github.com/xmonad/xmonad</a> is this an official repository?</pre>
</div></div>