[xmonad] New User Impressions
Spencer Janssen
spencerjanssen at gmail.com
Fri Feb 6 13:51:08 EST 2009
On Fri, Jan 30, 2009 at 06:06:18PM +0300, Khudyakov Alexey wrote:
> On Friday 30 January 2009 04:13:44 Adam Vogt wrote:
> > If you have a recent haskell X11 binding (>=1.4.4 I think) that had access
> > to those headers when compiled, then you will have the module;
> >
> > Graphics.X11.ExtraTypes.XF86
> >
> > which exports functions like xF86XK_AudioLowerVolume, which should be the
> > same as those raw numbers.
> >
> Thank you for hint. I've seen this module once, but could not found it again.
>
> It appears since 1.4.3. Since xmonad-contib depends on X11>=1.4.3 and I like
> convenience I've wrote patch which add multimedia key support to EZConfig.
>
> Xmonad-contib may become unbuildable if Graphics.X11.ExtraTypes.XF86 does not
> export such constant.
That is not acceptable. Either we must conditionally compile this code, or we
leave it out.
> It's possible if corresponding X11 headers does not
> define them.
>
> Is there way to check if function defined other than get compiler error?
There isn't any convenient way I'm aware of.
Perhaps we can use X11's stringToKeysym instead:
ghci> xF86XK_AudioPause
269025073
ghci> keysymToString xF86XK_AudioPause
"XF86AudioPause"
ghci> stringToKeysym "XF86AudioPause"
269025073
Cheers,
Spencer Janssen
More information about the xmonad
mailing list