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

Re: [FC2] Automatically starting xmodmap



On Wed, 16 Jun 2004 20:50:59 +1000
Steffen Kluge <kluge fujitsu com au> wrote:

> On Wed, 2004-06-16 at 11:07, Jean Calixte wrote:
> > I use the command
> > 
> > xmodmap -e "add mod3 = Super_L"
> > 
> > to map the Windows key to a few keyboard shortcuts. I'm annoyed at
> > the fact that I have to run this command manually to get the key to
> > map. Is there a file I can edit to set up which commands I want to
> > run at system startup? I'm also using the Gnome environment.
 
> In RedHat releases up to 9 (and may be FC1) you used to stick those
> commands into ~/.Xmodmap, which was read by /etc/X11/gdm/Xsession.
> Alas, in FC2 this file doesn't exist anymore, the X session is setup
> somehow differently.
> 
> However, /etc/X11/gdm/Init/Default loads /etc/X11/Xmodmap, so you
> might try to put your xmodmap commands there.

xmodmap takes a filename as an argument (see "man xmodmap") so you could just copy /usr/X11R6/lib/X11/etc/xmodmap.std to ~/.Xmodmap, edit as required, and put "exec xmodmap ~/.Xmodmap"  in your ~/.Xclients to run when you log in. 


-- 

-John (john os2 dhs org)



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