Fwd: [xmonad] xmonad on linux - modMask issues

Anders Engström ankaan at gmail.com
Sun Jul 26 05:52:01 EDT 2009


Made a mistake and didn't send the following message to the list:

---------- Forwarded message ----------
From: Anders Engström <ankaan at gmail.com>
Date: 2009/7/26
Subject: Re: [xmonad] xmonad on linux - modMask issues
To: Michael Campbell <michael.campbell at gmail.com>


Hello. Not really an xmonad issue, but my xmodmap gives me the
following modifier information for mod4:
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)

Where 0x85 = 113. I already had both added, but if I cleared it and
added Super_L both of them were added. So try the following:

xmodmap -e "add mod4 = Super_L"

If that doesn't work, try:

xmodmap -e "remove mod4 = Super_L"
xmodmap -e "add mod4 = Super_L"

Hope that works for you.

On Sun, Jul 26, 2009 at 04:45, Michael
Campbell<michael.campbell at gmail.com> wrote:
> Rank newbie here, so apologies if this isn't the right forum.
>
> I have just installed xmonad on an Ubuntu box using a keyboard with a
> "Windows" key.   The basic problem is I can't get the modMask settings
> correct, so I am quite unable to manipulate xmonad.
>
> Here's what I have, and have done.  I'm sure there is a simple fix for those
> more familiar with some of this, but it eludes me.
>
> * I've set my "modMask" to "mod4Mask".
>
> * xmodmap shows:
>
>> xmodmap
> xmodmap:  up to 2 keys per modifier, (keycodes in parentheses):
>
> shift       Shift_L (0x32),  Shift_R (0x3e)
> lock        Caps_Lock (0x42)
> control     Control_L (0x25),  Control_R (0x69)
> mod1        Alt_L (0x40),  Meta_L (0xcd)
> mod2        Num_Lock (0x4d)
> mod3
> mod4        Super_L (0xce),  Hyper_L (0xcf)
> mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)
>
>
> Note that mod4 shows "Super_L", and that "0xce" is decimal 206.
>
> When I run xev and hit my Windows key, I get:
>
> KeyPress event, serial 30, synthetic NO, window 0x3e00001,
>     root 0xc9, subw 0x0, time 25223274, (174,261), root:(2935,412),
>     state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XmbLookupString gives 0 bytes:
>     XFilterEvent returns: False
>
> KeyRelease event, serial 30, synthetic NO, window 0x3e00001,
>     root 0xc9, subw 0x0, time 25223351, (174,261), root:(2935,412),
>     state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
>     XLookupString gives 0 bytes:
>     XFilterEvent returns: False
>
>
> So it is showing up as "Super_L", but with a keycode of 133 instead of 0Xce
> (206).
>
> What incantation of xmodmap must I utter to get things set up so xmonad can
> "see" the modMask correctly when I chord with the Windows key?
>
> Many thanks,
>
> Michael
>
>
>
> --
> Twitter: http://twitter.com/campbellmichael
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>
>


More information about the xmonad mailing list