tried everything (Swap Caps_Lock and Control_L) nothing works!
Bigby James
bigby.james at dimthoughts.com
Wed Mar 25 16:01:42 UTC 2015
On 03/25, William Bulley wrote:
> This is really annoying. I know I have used xmodmap(1) in the past
> and it served me well. I now have a Dell keyboard on a Dell system
> and I can't get the caps lock key swapped with the left control key.
>
> Here is what I have now (yes, both -- belt and suspenders...):
>
> unix% head -6 $HOME/.xmodmaprc
> 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
> unix% grep modmap .xinitrc
> /usr/local/bin/xmodmap $HOME/.xmodmaprc
> unix% grep swap /etc/X11/xorg.conf
> Option "XkbOptions" "ctrl:swapcaps"
> unix% pkg info | grep xorg-server
> xorg-server-1.14.7_2,1 X.Org X server and related programs
You can easily do this without using xmodmap. Create the file
'/usr/local/etc/X11/xorg.conf.d/10-keyboard.conf' and add the following to it:
> Section "InputClass"
> Identifier "system-keyboard"
> Option "XkbOptions" "ctrl:swapcaps"
> EndSection
Bingo, bango, done. You can also follow Marko Turk's suggestion, but I think the
above method is cleaner myself.
--
"A common mistake that people make when trying to design something completely
foolproof is to underestimate the ingenuity of complete fools." - Douglas Adams
More information about the freebsd-questions
mailing list