[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Running xmodmap breaks keyboard layouts



Op Sat, 16 Jan 2010 03:39 +0000, George wrote:
> I added the following lines into my .xmodmaprc and I call xmodmap at
> startup to configure my keys how I want them:
> 
> remove Lock = Caps_Lock
> remove Mod4 = Super_L
> remove Mod1 = Alt_L
> remove Control = Control_L
> add Lock = Super_L
> add Lock = Control_L
> add Control = Caps_Lock
> add Mod4 = Alt_L
> 
> However now my keyboard layout change no longer works.

I believe that this will work:

remove Lock = Caps_Lock
remove Mod4 = Super_L
remove Mod1 = Alt_L
remove Control = Control_L

keycode 50 = Caps_Lock
keycode 37 = Caps_Lock
keycode 66 = Control_L
keycode 64 = Super_L

add Lock = Caps_Lock
add Mod4 = Super_L
add Mod1 = Alt_L
add Control = Control_L

Here, 50, 37, 66 and 64 are the keycodes for the left Shift key, the
left Ctrl key, the CapsLock key and the left Alt key, respectively,
with my keyboard. You could use xev to find out what these values are
with your keyboard, and change them accordingly.


Reply to: