You are not logged in.

#1 2011-07-14 10:11:05

jneem
Member
Registered: 2011-07-14
Posts: 13

Why does xmodmap have no effect? [SOLVED]

I'm trying to use xmodmap to turn my Caps Lock key into an additional ctrl. I have the following xmodmap code:

clear Lock
add Control = Caps_Lock

After running xmodmap, I get the following output from xmodmap -pm:

xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock      
control     Control_L (0x25),  Caps_Lock (0x42),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

which looks to me like the change was successful. But caps lock still does THIS sad Any suggestions?

Last edited by jneem (2011-08-13 07:12:09)

Offline

#2 2011-07-14 10:58:22

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Why does xmodmap have no effect? [SOLVED]


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2011-07-14 11:30:24

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Why does xmodmap have no effect? [SOLVED]

As Mektub mentioned, use setxkbmap / xorg.conf instead to do it. It's more reliable and less trouble.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2011-08-13 07:11:48

jneem
Member
Registered: 2011-07-14
Posts: 13

Re: Why does xmodmap have no effect? [SOLVED]

Thanks, setxkbmap did the trick.

Offline

Board footer

Powered by FluxBB