[Lug-Nuts] Usefulness of Windows Keys.

From: Rick Johnson (rsjohn@directcon.net)
Date: Mon Sep 06 1999 - 17:10:57 PDT


I thought some of you might find this of use. I was poking around today
and decided to make the extra keys on my Win95 keyboard useful.

To accomplish this I created a new keymap file that includes the current
one and also maps the otherwise useless keys. These changes will cause the
windows key to start X windows and the application key to start pine.
Note, this only works from the console.

Here are the contents of the attached file in case you need to make
changes for your distribution.

The include line should point to the current keymap in use.

#contents of winkey-us.kmap.gz
include "/usr/lib/kbd/keymaps/i386/qwerty/us.kmap.gz"
keycode 125 = F100
keycode 126 = F100
keycode 127 = F101
string F100 = "startx\n"
string F101 = "pine\n"

Keycode 125 and 126 are the left and right windows keys, while the 127 is
the application key. The keymap should end with a linebreak to avoid
problems. After that, you should gzip the file and put it into a
subdirectory of: /usr/lib/kbd/keymaps/i386/qwerty/

To activate your changes, simply type: loadkeys winkey-us.kmap.gz

If you want the keymap to be loaded at startup, put the loadkeys call into
/etc/rc.local. If you use Redhat, change the contents of the file
/etc/sysconfig/keyboard to: KEYTABLE=winkey-us.kmap.gz

I tested this on Redhat and Mandrake 6.0. If anyone has a question please
let me know.

Rick

-----
    ... they can have my ssh when they pry the keyboard _
               out of my cold, dead hands! | |
                                                                   / /__
.---------------------------------------------------------._______/ (___)
| Rick Johnson <rsjohn@directcon.net> | (___)
| Director of Operations Phone: 800.711.9560 |_______ (___)
| Direct Connect Internet Fax: 530.676.2664 | _(___)
| http://www.directcon.net AIM: rsjohn01 |
`---------------------------------------------------------'





This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:07 PST