Re: xmodmap again - not solved after all
- From: "s. keeling" <keeling@xxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 03:08:08 +0200 (CEST)
Mumia W.. <paduille.4061.mumia.w+nospam@xxxxxxxxxxxxx>:
On 09/25/2007 09:25 AM, Anthony Campbell wrote:
I've twice thought I'd solved this one but no. To recap: my .xinitrc
contains the line: "xmodmap ~/.Xmodmap". which has worked for many
months or even years. In the last couple of weeks the command is not
being run.
Try this in your .bashrc:
if [ -n "$DISPLAY" ]; then
if (which xmodmap); then
xmodmap ~/.Xmodmap
fi
fi > /dev/null
I've never seen it, but I don't assume that xmodmap will automatically
be called.
Note, the code I wrote has a problem. You need to find a way to test
that xmodmap hasn't already been invoked for the X server. To do this,
you might test if your key mappings are already in xmodmap before
if [ "$XMODMAP" != "Done" ]; then
if [ -n "$DISPLAY" ]; then
if (which xmodmap); then
xmodmap ~/.Xmodmap
export XMODMAP=DONE
fi
fi > /dev/null
fi
I just have:
usermodmap=$HOME/.Xmodmap
if [ -f $usermodmap ]; then
/usr/bin/xmodmap $usermodmap
else
# fix the mouse at the least.
#
/usr/bin/xmodmap -e "pointer = 3 2 1"
fi
in my ~/.xinitrc (I'm a southpaw, btw).
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: xmodmap again - not solved after all
- From: Anthony Campbell
- Re: xmodmap again - not solved after all
- From: Mumia W..
- Re: xmodmap again - not solved after all
- References:
- xmodmap again - not solved after all
- From: Anthony Campbell
- Re: xmodmap again - not solved after all
- From: Mumia W..
- xmodmap again - not solved after all
- Prev by Date: Newbie help with simple C program, USB device under Debian
- Next by Date: Re: How to reply in the mailing lists
- Previous by thread: Re: xmodmap again - not solved after all
- Next by thread: Re: xmodmap again - not solved after all
- Index(es):
Relevant Pages
|