EZConfig, binding special keys

hi, im using EZConfig to bind keys, and now i got problem to bind some special keys on my thinkpad laptop, e.g. <Fn>, <VolumeUp>, <VolumeDown> etc. They are not in the list of the keys in EZConfig's document. Is there anyway to bind them? thanks. best lars

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Sun, Jan 4, 2009 at 8:43 PM, Chengqi(Lars) Song wrote:
hi,
im using EZConfig to bind keys, and now i got problem to bind some special keys on my thinkpad laptop, e.g. , , etc. They are not in the list of the keys in EZConfig's document. Is there anyway to bind them? thanks.
best lars
If you don't go through EZConfig, you can probably bind them as usual. If you look at Graphics.X11.ExtraTypes.XF86, you'll see constants like xF86XK_AudioLowerVolume which may do what you want. - -- gwern -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREKAAYFAklhb4QACgkQvpDo5Pfl1oK6BgCgjN6NAk4ZV7HqyckzTqlqN6UP OCkAn3AFjd16mXosQLaWoOOCk6NrSCJ0 =HTKI -----END PGP SIGNATURE-----

On Mon, 5 Jan 2009 09:43:28 +0800
"Chengqi(Lars) Song"
hi,
im using EZConfig to bind keys, and now i got problem to bind some special keys on my thinkpad laptop, e.g. <Fn>, <VolumeUp>, <VolumeDown> etc. They are not in the list of the keys in EZConfig's document. Is there anyway to bind them? thanks.
Note that in most times Fn is not a real key that emits a keycode. Only in combination with some special other keys it sends another keycode. so maybe you could bind something at <Fn>+<ArrowUp> (that is on my laptop a key that change the backlight of the screen) but not only on <Fn>.
best lars
Alex

Lars, as well as the normal M.fromList with M.union binding method, you can also use EZConfig.additionalKeys if you want, as that uses the (mod1Mask, xK_SomeKey) style bindings you will need. (no easy submaps, like additionalKeysP, though) http://subvert.org.uk/~bma/technotes/getting-fancy-keys-working/ has step by step directions for using xev and xmodmap to get special keys working in xmonad. regards, Wirt
participants (4)
-
AlexanderS
-
Chengqi(Lars) Song
-
Gwern Branwen
-
wirtwolff