Date: Wed, 25 Mar 2015 10:12:53 -0400 (EDT) From: Chris Hill <chris@monochrome.org> To: William Bulley <web@umich.edu> Cc: freebsd-questions@freebsd.org Subject: Re: tried everything (Swap Caps_Lock and Control_L) nothing works! Message-ID: <alpine.BSF.2.20.1503251008060.10123@tripel.monochrome.org> 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 Wed, 25 Mar 2015, 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 The filename might be case sensitive. Here's mine, which works. Note the capital X. chris@tripel$ more /usr/home/chris/.Xmodmap ! Straight from the man page... ! ! Swap Caps_Lock and Control_L ! 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 And... chris@tripel$ grep odmap .xinitrc usermodmap=$HOME/.Xmodmap sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap if [ -f $sysmodmap ]; then xmodmap $sysmodmap if [ -f $usermodmap ]; then xmodmap $usermodmap I don't have an xorg.conf. HTH. -- Chris Hill chris@monochrome.org ** [ Busy Expunging </> ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1503251008060.10123>