Re: Running xmodmap breaks keyboard layouts

2010-01-16 Thread Sjoerd Hiemstra
Op Sat, 16 Jan 2010 03:39 +, 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.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Running xmodmap breaks keyboard layouts

2010-01-15 Thread George
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. It's configured
through those lines in /etc/X11/xorg.conf:

Section "InputDevice"
Identifier  "Generic Keyboard"
Driver  "kbd"
Option  "XkbRules"  "xorg"
Option  "XkbModel"  "pc104"
Option  "XkbLayout" "us,el"
Option  "XkbOptions"
"grp:alt_shift_toggle,ctrl_shift_toggle,eurosign:e"
EndSection

How can I fix this?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org