On Tue, 2007-07-31 at 13:23 +0300, Alex V. Fansky wrote:
> Hello,
> I want command "xmodmap ~/.Xmodmap" to be executed on my X.org start
> and even 
> restart. Where is the best place to put it? 

Kinda depends on how you start your X session.  I'll talk about the ones
I know about:

      * If you use "startx" or "xinit" to start your X session, then you
        probably already have an ~/.xinitrc. You can put it there.
      * If you use a xdm or similar then you can put it in ~/.xsession.
        By default, though GDM, for example, does not read your
        ~/.xsession, however...
      * GNOME automatically reads your ~/.Xmodmap on startup unless told
        otherwise.  You could also put it in "Control
        Center/Sessions/Startup Programs"
      * I would *not* put it in ~/.bashrc for remote X stuff. the reason
        is that your local machine may, e.g. have a different keyboard
        layout than the remote machine and when you ssh into the remote
        machine it will use the local .Xmodmap.  This is also a problem
        with GNOME's automatic reading of .Xmodmap too, unfortunately.
        If you are using xdm but not GNOME you can probably get around
        it by checking to see if the DISPLAY variable points to a remote
        (or ssh-forwarded) display.

I don't know KDE or other DE's/DM's so cannot say. 

--
Albert W. Hopkins

-- 
[EMAIL PROTECTED] mailing list

Reply via email to