Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th June 2008, 09:41 PM
samjones Offline
Registered User
 
Join Date: Mar 2007
Location: Austin, TX
Age: 42
Posts: 8
Remap Keys for Compuz Fusion

I'm using a Kinesis keyboard, which is a great, comfortable ergonomic keyboard, but it has no windows key. I was fine with this, but now I'm using Compiz Fusion, which makes really extensive use of the windows (or 'super') key.

What I'd like to do is remap my right alt key to the super key. I can do this for individual windows, but I can't find a way to do it that Compiz recognizes. I'm using Fedora Core 9 on an x86_64 machine. Thanks in advance for any help you can give.
Reply With Quote
  #2  
Old 7th June 2008, 09:49 PM
samjones Offline
Registered User
 
Join Date: Mar 2007
Location: Austin, TX
Age: 42
Posts: 8
Thanks for the super quick reply. I have ccsm, and I can remap all the super key things to alt key things with the compiz setting manager, but there's a lot of cases where that would overwrite a map that I already have for an alt key.

But, as best I can tell, ccsm won't let me map one function to leftAlt+tab and another function to rightAlt+tab, which is the kind of thing I want to do. Or am I overlooking something?
Reply With Quote
  #3  
Old 10th June 2008, 07:44 PM
samjones Offline
Registered User
 
Join Date: Mar 2007
Location: Austin, TX
Age: 42
Posts: 8
Solution

You people have left me no choice but to research my own solution. The command to use is "xmodmap".

"xmodmap -pm" Shows the mappings in place. Here's an example:

Code:
shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_R (0x71),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)
So we need to pull Alt_R out of mod1 and put it into mod4. We can do this with two commands:

xmodmap -e "remove mod1 = Alt_R"
xmodmap -e "add mod4 = Alt_R"

And that's it. The right alt key is a windows key for the rest of the session. I found the solution at this site:

http://www.columbia.edu/~djv/docs/keyremap.html
Reply With Quote
Reply

Tags
compuz, fusion, keys, remap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F10, F11: How to remap keys (disable Caps Lock and so on with xmodmap) louise Guides & Solutions (No Questions) 1 30th June 2009 01:49 PM
remap keys: jguy Programming & Packaging 0 9th May 2007 06:19 AM
How to remap keys in textmode and X louise Guides & Solutions (No Questions) 1 30th October 2006 09:22 PM
How to remap keys in textmode? louise Using Fedora 0 29th May 2006 11:27 PM


Current GMT-time: 03:02 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat