[xmonad] how to map XF86* keys?

Chengqi Song songcq at gmail.com
Sun Jan 10 01:48:07 EST 2010


myKeys = \c -> mkKeymap c $
    -- volume key binding
    [ ("M-=", spawn "aumix2pipe +10")
    , ("M--", spawn "aumix2pipe -10")
    , ((0, 0x1008ff11), spawn "aumix2pipe -10")
    ...

does not compile.

lars

On Sun, 10 Jan 2010, Konstantin Sobolev wrote:

> On Sun, Jan 10, 2010 at 12:42 AM, Chengqi Song <songcq at gmail.com> wrote:
> > I want to map my vol up and vol down keys. I used xev to capture their info as follows:
> >
> > KeyRelease event, serial 27, synthetic NO, window 0x1600001,
> > ? ?root 0x115, subw 0x0, time 1035672, (320,301), root:(321,319),
> > ? ?state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
> > ? ?XLookupString gives 0 bytes:
> > ? ?XFilterEvent returns: False
> >
> [...]
> > Could anyone provide a solution?
> 
> try ((0, 0x1008ff11), spawn ... )


More information about the xmonad mailing list