Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Mar 2015 15:19:46 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Chris Hill <chris@monochrome.org>
Cc:        William Bulley <web@umich.edu>, freebsd-questions@freebsd.org
Subject:   Re: tried everything (Swap Caps_Lock and Control_L) nothing works!
Message-ID:  <20150325151946.88f90a76.freebsd@edvax.de>
In-Reply-To: <alpine.BSF.2.20.1503251008060.10123@tripel.monochrome.org>
References:  <20150325125708.GH3131@itcom245.staff.itd.umich.edu> <alpine.BSF.2.20.1503251008060.10123@tripel.monochrome.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150325151946.88f90a76.freebsd>