[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xmodmap again - not solved after all



Mumia W.. <paduille.4061.mumia.w+nospam@earthlink.net>:
>  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@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
.



Reply to: