[xmonad] how to map XF86* keys?

Ian D. Leroux idleroux at fastmail.fm
Sun Jan 10 20:21:45 EST 2010


On Sun, 10 Jan 2010 16:19:16 -0500
wagnerdm at seas.upenn.edu wrote:

> Quoting "Ian D. Leroux" <idleroux at fastmail.fm>:
> http://hackage.haskell.org/packages/archive/X11/1.5.0.0/doc/html/Graphics-X11-ExtraTypes-XF86.html
> 
> For example:
> 
> import Graphics.X11.ExtraTypes.XF86
> 
> myKeys XConfig{XMonad.modMask = modm} = M.fromList
>      [ ...
>      , ((0, xF86XK_AudioMute, spawn "amixer -q set PCM toggle")
>      , ((0, xF86XK_AudioRaiseVolume, spawn "amixer -q set PCM 1+")
>      , ((0, xF86XK_AudioLowerVolume, spawn "amixer -q set PCM 1-")
>      , ((0, xF86XK_Mail, spawn "urxvtc -e abook")
>      ]

Much better than my version, thanks for pointing that out.  Note that
this requires a more recent version of the X11 library than currently
ships with Debian.

--
Ian Leroux


More information about the xmonad mailing list