FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-16-2010, 02:39 AM
George
 
Default Running xmodmap breaks keyboard layouts

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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-16-2010, 10:42 AM
Sjoerd Hiemstra
 
Default 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.


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

Thread Tools




All times are GMT. The time now is 05:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org