You are not logged in.

#1 2010-11-06 16:50:08

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Remapping keys...

Hi,

I got a MacBook Pro. To make Linux feel a bit more like OS X, I tried to invert the cmd and ctrl keys. Here's the script I'm using:

xmodmap -e "keycode 133 = Control_L"
xmodmap -e "keycode 134 = Control_R"
xmodmap -e "keycode 37 = Super_L"

However, this is not working. As a matter of fact, this changes nothing at all. What am I missing?

Cheers,
Allan

Offline

#2 2010-11-06 17:13:36

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Remapping keys...

Did you read through the xmodmap wiki entry?


ᶘ ᵒᴥᵒᶅ

Offline

#3 2010-11-06 17:55:35

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Re: Remapping keys...

litemotiv wrote:

Did you read through the xmodmap wiki entry?

Yes.

Offline

#4 2010-11-06 20:17:17

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Remapping keys...

I don't know why it doesn't work for you, it works on my MBP...

Did you enter them in a console and then check the results with xev?


ᶘ ᵒᴥᵒᶅ

Offline

#5 2010-11-07 09:33:10

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Re: Remapping keys...

litemotiv wrote:

I don't know why it doesn't work for you, it works on my MBP...

Did you enter them in a console and then check the results with xev?

Yup, checked it with xev. It does reports Control_R / Control_L when I hit the cmd keys and Super_L when I hit the ctrl key, just like I want it. But if I use a program, like Mousepad and try to select the whole text with cmd+a, it doesn't work; I still have to use ctrl+a.

EDIT: It now works. I hadn't followed the wiki exactly...

Last edited by MrAllan (2010-11-07 17:01:34)

Offline

Board footer

Powered by FluxBB