Click to See Complete Forum and Search --> : Mapping of those Keyboard Keys and Mouse Buttons.


Wallex
07-17-2002, 10:37 PM
I am not gonna complain about the mouse since all it's buttons work well, but my keyboard...
It seems I lost those 'Windows keys' and the one that is 'right click' (shift+F10), I did tell Suse my keyboard distribution was more than 101 keys (Windows layout, I think I told him) and yet those keys do nothing, it's kinda a waste, so I was wondering.. is there a way (preferrably an easy one... but if there isn't one, I'll just have to learn) to go and tell these 'unused' keys how to be useful?

mdwatts
07-18-2002, 08:33 AM
Don't forget those Windows keys = Windows OS for functionality.

I did however see someone post here within the last week or so about assigning those keys. You may be able to find the thread with a forum search.

mrBen
07-18-2002, 08:53 AM
First thing is to get your keycodes, you can do this using the xev programme, which should tell you the keycodes you need. You then tweak your xkb settings to generate proper symbols, and then lastly you either edit the xkb settings to initiate events, or you set the symbols to run stuff in your WM.

For instance, I have my multimedia keys set to generate function key output (F13-) that wouldn't normally get used. I then use my Fluxbox settings to make those function keys execute commands.

Search for multimedia keyboard linux or xkb linux on Google, or check the last backissue of Linuxformat UK that is online at www.linuxformat.co.uk

Wallex
07-18-2002, 06:07 PM
I managed to get as far as getting all the keys, but I've been looking for the file where I need to do the key-mapping (was reading the How-To on that) and I I failed! Where is the file where I do the key mapping? Maybe I haven't looked around enough.. but I really have to go do other things! wished i had more time to learn Linux.

mdwatts
07-19-2002, 06:49 AM
Try http://lineak.sourceforge.net/

I've been planning to try it at work one of these days.

Wallex
07-19-2002, 11:23 AM
Finally...
I've managed to make Lineak work (in a very strange way.. the windows keys are now called volumeUp and volumeDown, for example), but I have to assign something to those keys. I wanted to assign Shift+F10 and Alt+F1 (so that they would work kinda the way the keys worked back in windows), but apparently Lineak will only accept command lines that I should have placed in the console? If not.. anyone knows a way around this?
EDIT: I give up on this... I realized Lineak won't work the way I want it to... I have to find a way to make those extra keys available to my distro so that I can directly assign shortcuts to them in the Preferences->shortcut menu. I'll go keep looking for the xkb file.. it got to be around somewhere...

mrBen
07-19-2002, 11:30 AM
I think the xkb files are in /etc/X11/ - just do a 'locate xkb' and see what you get.

(I'm using Xfree 4.x, BTW)

Wallex
07-19-2002, 12:36 PM
Yay I made it work!
I just had to change the keyboard type from PC101 to PC105 (strange since I don't know which is the fourth new key.. the new keys I notice are lwin, rwin and menu), anyway.. it works fine now (except that the rwin and menu keys are inverted), and now... how do I uninstall a program installed with a tar.gz file? Is there a make -uninstall option or I just reinstall and keep track of the installed files to delete them afterwards? Thanks for the help... finally I have a new key which I can use for shortcuts!