Re: Automating xmodmap keymaps



On Sat, Apr 10, 2010 at 6:01 PM, Disc Magnet <discmagnet@xxxxxxxxx> wrote:
Everytime I log into GNOME, I run this command in my home directory.

xmodmap keymaps

How can I automate this?

You can try with .xinitrc and/or .xsession, it should work.
Alternatively, you can try with .bachrc file, but in this way command
will be execute every time you open a shell session (i.e. open a
terminal): I suggest you to prevent this with a little bit code:

if [ `cat /tmp/$USER-keymaps.load` -ne 1 ]; then
xmodmap keymaps
echo 1 > /tmp/$USER-keymaps.load
fi

--
Openclose.it - Idee per il software libero
http://www.openclose.it


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/k2t457d677b1004110901j3f92ae95x9a8a99d6deb164df@xxxxxxxxxxxxxx



Relevant Pages

  • Re: Automating xmodmap keymaps
    ... Alternatively, you can try with .bachrc file, but in this way command ... will be execute every time you open a shell session (i.e. open a ...
    (Debian-User)
  • Automating xmodmap keymaps
    ... I run this command in my home directory. ... How can I automate this? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)