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

Re: Automating xmodmap keymaps



On Sat, Apr 10, 2010 at 6:01 PM, Disc Magnet <discmagnet@gmail.com> 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


Reply to: