[svlug] new keysym - is it possible?
Drew Bertola
drew at drewb.com
Sun Apr 15 11:55:02 PDT 2001
Erik Steffl writes:
> the keyboards I have (logitech itouch and turbo-media (it's basically
> a noname from compUSA)) have various extra keys, for volume, audio
> player control etc... I would like to use these under X, I already
> figured out that xev gives me the keycode and that xmodmap maps this
> keycode to a keysym.
>
> since these keys are 'special' I would like to use unique keysyms, not
> the ones already existing (just to help me remember which keys are these
> and also that these keysym were created (and mapped) by me). However if
> I use non-existing keysym I get:
>
> jojda:~>xmodmap -e 'keycode 234 = erikMenu'
> xmodmap: commandline:0: bad keysym name 'erikMenu' in keysym list
> xmodmap: 1 error encountered, aborting.
>
> my question is: is it possible to create a new keysym? if yes, the
> next question is naturally: how?
Try using one of the keysyms defined in /usr/X11R6/lib/X11/XKeysymD
(on my RH7 system). There are keysyms such as:
XF86HomePage :1008FF18
XF86Mail :1008FF19
XF86Start :1008FF1A
XF86Search :1008FF1B
XF86AudioRecord :1008FF1C
XF86Calculator :1008FF1D
XF86Memo :1008FF1E
XF86ToDoList :1008FF1F
XF86Calendar :1008FF20
XF86PowerDown :1008FF21
On my box, I have a "www", "mail", and "search" button (236, 178, 229,
respively), so I added these lines to my ~/.Xmodmap file:
keycode 178 = XF86HomePage
keycode 229 = XF86Search
keycode 236 = XF86Mail
Then I setup shortcuts in Enlightenment to run commands when any of
those is pressed. (These commands don't have to match the intention
of the keyboard designer.)
--
Drew Bertola | Send a text message to my pager or cell ...
| http://jpager.com/Drew
More information about the svlug
mailing list