
10 Jan
2010
10 Jan
'10
8:21 p.m.
On Sun, 10 Jan 2010 16:19:16 -0500 wagnerdm@seas.upenn.edu wrote:
Quoting "Ian D. Leroux"
: http://hackage.haskell.org/packages/archive/X11/1.5.0.0/doc/html/Graphics-X1... 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