|
|
Subject: xmodmap help.
From: Dances With Crows
Date: 9/7/2007 4:19:00 PM
Mark Healey staggered into the Black Sun and said:
> I have an IBM 84 key space saver keyboard. It has "Num Lock" on the
> fore edge of the back space key. I assume that this was so you could
> toggle number locking by chording the backspace key with something and
> use the labeled querty keys as a numeric keypad. I don't think that
> this was done in hardware and there is no option for this keyboard in
> any of the configuration programs.
Fire up xev and take a look at the keycodes reported when you push
{various modifiers}+BkSpace. IBM Thinkpads use a strange keycode for
NumLock; Shift+ScrollLock produces keycode 77, which you have to xmodmap
to NumLock.
> I'd like to make one but can't figure out how to use xmodmap to do so.
> What I'd like to do is set it up so that the right alt key chorded
> with backspace toggles number locking.
If something (shift or alt) together with backspace produces a keycode
different from the normal backspace keycode, all you should have to do
is find that keycode and do "xmodmap -e 'keycode NN = NumLock' ". Once
you've figured that out, have something that runs at your WM/DE startup
execute that xmodmap command.
> Once I've done that I'd like to have the "U" key input a 4, the "I"
> key input a 5, etc when number locking is on.
This should happen automagically if the keyboard's behaving properly.
At least it did on all the Thinkpads with NumLock that I've had.
--
You have me mixed up with more creative ways of being stupid.
--MegaHAL, trained on random gibberish
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
|