[ltp] How to remap Alt-R into Super (for Compiz)?

Giuseppe Castagna linux-thinkpad@linux-thinkpad.org
Sun, 25 Jun 2006 15:05:15 +0200


Marius Gedminas wrote:
> On Sun, Jun 25, 2006 at 11:58:00AM +0200, Giuseppe Castagna wrote:
>>    I just installed Compiz on Aiglx in my Fedora 5 + rawhide X40 Thinkpad. 
>>    It works nicely but unfortunately many effects are activated by the "Super" 
>> key. If I understood correctly this is the Windows Key which, as we all 
>> know is absent from the keyboard of our beloved Thinkpads.
>>    Does anybody know how to remap the right alt key (or the "Access IBM" 
>>    one) to the Super key?
> 
> I've a European keyboard layout with an extra key (labeled |\) between
> left shift and the letter X.  I've remapped it to Super with this
> command:
> 
>   xmodmap -e 'keycode 94 = Super_L Super_L' -e 'clear mod4' \
>           -e 'add mod4 = Super_L'
> 
> The keycode for Alt_R is 113, so replace 94 with 113 in the above
> command and it should work.
> 

That worked nicely ... thank you

---Beppe---