[ltp] Changing gray keys on a T41 to Windows Keys
Heiko Rosemann
linux-thinkpad@linux-thinkpad.org
Thu, 6 May 2004 22:13:10 +0200 (CEST)
Hi,
On Thu, 6 May 2004, Matt Graham wrote:
> On Thursday 06 May 2004 14:49, after a long battle with technology,
> Daniel Jimenez wrote:
> > I use my Windows Keys in KDE frequently and would like some on my
> > thinkpad. I thought about using the two gray keys (I assume they are
> > for back and forward) for windows keys.
> >
> > Is there anyway to do this? Xmodmap lets me reprogram the key, but
> > holding down the key sends 100s of keypresses instead of just one
> > like holding down control.
>
> The key (whatever it is) is set to autorepeat. Use xev to find the
> keycode for the key, then "xset -r $KEYCODE" to set autorepeat off.
> You'll want to put the xset commands in a script in your
> ~/.kde/Autostart/ directory once you've figured out what they are.
Well, if it is of any help: I assigned the back and forth keys on my X30 to
"Next Console" and "Previous Console" (I often work on console rather than
X) with the following in my startup scripts:
----------------------------------
/usr/bin/setkeycodes e069 126
/usr/bin/setkeycodes e06a 127
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys my_map
fi
----------------------------------
And the keymap file contains:
----------------------------------
include "de-latin1-nodeadkeys.map"
keycode 126 = Incr_Console
keycode 127 = Decr_Console
----------------------------------
May this be of any help to you, Heiko
--
* WARNING! The USB documentation is downright evil. Most of it
* is just crap, written by a committee. You're better off ignoring
* most of it, the important stuff is: [...]
-- 2.4.24's drivers/usb/host/uhci.c (full ack!)