You are not logged in.

#1 2005-11-16 16:02:06

tdphys
Member
From: Lower Mainland
Registered: 2005-06-14
Posts: 50

universal key binding

Whats the best way to swap my control and caps-lock? Can I do that in my .xinitrc?
Thanks

Offline

#2 2005-11-16 17:53:39

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: universal key binding

Put this into ~/.Xmodmap (straight from xmodmap manpage):

remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L

then add this line into ~/.xinitrc (if it's not already there) before the 'exec your_wm' line:

xmodmap ~/.Xmodmap &

Offline

#3 2005-11-16 20:47:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: universal key binding

sh__ wrote:

Put this into ~/.Xmodmap (straight from xmodmap manpage)

O RLY?

Offline

#4 2005-11-16 23:55:18

SleepyDog
Member
Registered: 2004-10-15
Posts: 114

Re: universal key binding

In /etc/X11/xorg.conf...

Section "InputDevice"
...
Option "XkbOptions" "ctrl:swapcaps"
...
EndSection

Offline

#5 2005-11-17 10:49:18

sh__
Member
Registered: 2005-07-19
Posts: 272

Re: universal key binding

phrakture wrote:

O RLY?

[URL=http://img368.imageshack.us/my.php?image=yarly341099vc.jpg]yarly341099vc.th.jpg[/URL]

Offline

#6 2005-11-17 11:37:45

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: universal key binding

sh__ wrote:
phrakture wrote:

O RLY?

[URL=http://img368.imageshack.us/my.php?image=yarly341099vc.jpg]yarly341099vc.th.jpg[/URL]

lol

Offline

Board footer

Powered by FluxBB