[xmonad] How to find the XF86Launch1-Key reference?

Thomas Friedrich info at suud.de
Sun Sep 27 16:01:38 EDT 2009


Sergey Manucharian wrote:
> On Fri, 25 Sep 2009 16:28:06 -0400
> Thomas Friedrich <info at suud.de> wrote:
>   
>> ...
>> KeyPress event, serial 28, synthetic NO, window 0x2c00001,
>>     root 0x102, subw 0x0, time 31601784, (329,154), root:(855,155),
>>     state 0x0, keycode 156 (keysym 0x1008ff41, XF86Launch1),
>> same_screen YES,
>>     XLookupString gives 0 bytes:
>>     XmbLookupString gives 0 bytes:
>>     XFilterEvent returns: False
>>
>>
>> so I know now the keysym and I know its bind to XF86Launch1.  But how
>> do I find out how I can refer to this key within Xmonad?
>> ...
>>     
> Hi Thomas,
>
> I have the follow bindings in my xmonad.hs for the multimedia
> keys and the ThinkVantage key(Lenovo R61):
>
> -------------------------8<------------------------------
>
>     -- multimedia keys
>     -- XF86AudioLowerVolume
>     , ((0            , 0x1008ff13), spawn "volume-louder")
>     -- XF86AudioRaiseVolume
>     , ((0            , 0x1008ff11), spawn "volume-quieter")
>     -- XF86AudioMute
>     , ((0            , 0x1008ff12), spawn "volume-mute")
>     -- XF86AudioMicMute
>     , ((0            , 0x1008ff41), spawn "volume-mic-mute")
>     -- XF86AudioNext
>     , ((0            , 0x1008ff17), spawn "player-next")
>     -- XF86AudioPrev
>     , ((0            , 0x1008ff16), spawn "player-prev")
>     -- XF86AudioPlay
>     , ((0            , 0x1008ff14), spawn "player-start")
>     -- XF86AudioStop
>     , ((0            , 0x1008ff15), spawn "player-stop")
> -------------------------8<------------------------------
>
> It works fine for me, as you can see, I use "0x1008ff41" keysym
> directly.
>
> Cheers,
> Sergey
>   

Thanks so much Sergey.  I didn't know you could just use the keysym
directly.  That's great and it works!!  Thanks again,

Thomas



More information about the xmonad mailing list