tried everything (Swap Caps_Lock and Control_L) nothing works!

Polytropon freebsd at edvax.de
Wed Mar 25 14:19:57 UTC 2015


On Wed, 25 Mar 2015 10:12:53 -0400 (EDT), Chris Hill wrote:
> 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.

It _is_, but he properly calls it: He cites "head -6 $HOME/.xmodmaprc"
and "/usr/local/bin/xmodmap $HOME/.xmodmaprc", so this isn't a
problem. Otherwise, the xmodmap program would report an error.

This is my ~/.xinitrc entry for xmodmap, for comparison:

	[ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc

You can always verify the desired xmodmap effect by calling
it within an xterm.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list