![]() |
Mapping AltGr key to act as WIN key
Hi,
I use ubuntu on a thinkpad X31 with PC102 keyboard with no WIN key. I wish to map the Rt Alt (AltGr) key to act as WIN key (for compiz shortcuts) How can I do this? Thanks in advance, Krishna |
First you need to find out what the keycode is for the key you want to map. Bring up a terminal and type in the following, followed by the Enter key:
Code:
xevCode:
KeyRelease event, serial 31, synthetic NO, window 0x3800001,The other thing you need to know is Super_L is the name of the left windows key. Close xev and in the terminal go to your home directory and make a file called .Xmodmap. I doubt that you already have one. Use whatever text editor you know, but don't use a word processor. I show using nano here.: Code:
cdCode:
keycode 113 = Super_L |
Works!
Strangely enought the .Xmodmap didn't work with wmii (where I like to use Mod4 as the modifier)
Based on your solution I created a .xsessionrc in my home folder with this line: xmodmap -e "keycode 108 = Super_L" This seems to work like a charm. Thanks for your help |
no tweak!
Quote:
enkoy!! |
| All times are GMT -5. The time now is 05:47 AM. |