Date: Wed, 25 Mar 2015 11:01:31 -0500 From: Bigby James <bigby.james@dimthoughts.com> To: freebsd-questions@freebsd.org Subject: Re: tried everything (Swap Caps_Lock and Control_L) nothing works! Message-ID: <20150325160131.GA8983@WorkBox.Home> In-Reply-To: <20150325125708.GH3131@itcom245.staff.itd.umich.edu> References: <20150325125708.GH3131@itcom245.staff.itd.umich.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150325160131.GA8983>