[H-GEN] keyboard mapping

Stuart Longland stuartl at longlandclan.hopto.org
Thu Apr 17 02:07:06 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Clinton Roy wrote:
~ > I've recently been given an Acer keyboard with a few extra nobs and
| things, a workmate did the hard bits by using xev to work out the
| keycode (look for the "keycode" keyword in the xev output) then used
| xmodmap to map the keycode to an X event (keycode 196 = FunkyKey1). It
| was then easy for me to use my windowmanager to setup convenient short
| cuts.
|
| that's pretty short on details, but hopefully it'll help.

I've got similar problems with a Diamond Touch PS/2 Keyboard.
Using your suggestion with xev, I've narrowed down these scancodes:

163	'Shortcut'
151	'Back'
148	'Forward'
149	'Search'
165	'Favourite'

144	'Previous Track'
153	'Next Track'
152	'Stop'
162	'Play/Pause'

174	'Volume Down'
176	'Volume Up'

160	'Mute'
159	'E-mail'
178	'WWW'

But I get problems when I try to give these scancodes names:

root at beast ~
# xmodmap -
keycode 163 = Shortcut
xmodmap:  stdin:0:  bad keysym name 'Shortcut' in keysym list

I've also tried P1, Prog1, FunkyKey1, and a number of others.
What I'd like to do is use the multimedia buttons to control XMMS, use
some of the navigational buttons for Mozilla, and be able to adjust the
volume using the volume knob and Mute button.

If I can't control Mozilla, and other programs like this, I'll probably
bind them to allow me to execute commonly used programs.  The Prev
Track/Next Track buttons would be useful for switching between windows
(Alt+Tab/Shift+Alt+Tab).
- --
+-------------------------------------------------------------+
| Stuart Longland           stuartl at longlandclan.hopto.org |
| Brisbane Mesh Node: 719             http://stuartl.cjb.net/ |
| I haven't lost my mind - it's backed up on a tape somewhere |
| Griffith Student No:           Course: Bachelor/IT @ Nathan |
+-------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+nkSKIGJk7gLSDPcRAhyyAJ96QEXRexpC9W/LW4tU58DCDLYyIgCfVFUA
Sb4bxOAz4Ane9N5ngEiiaEo=
=2JZC
-----END PGP SIGNATURE-----


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list