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

Re: xmodmap not working correctly with startx

> 2010/5/4 Anonymous bin ich <ichbinanon@gmail.com>
>> Hello!
>> I am trying to map Escape key to Caps Lock, so it helps in vim editor.
>> For that, I have .xmodmap with following content:
>> remove Lock = Caps_Lock
>> keysym Caps_Lock = Escape
>> Now, if I call "xmodmap ~/.xmodmap" after starting Xsession (i.e.,
>> after starting fvwm, opening xterm and typing in it), then i am able
>> to map Esacpe to Caps Lock key.
>> But if I call "xmodmap ~/.xmodmap" in my .xinitrc, before starting my
>> session (fvwm&), then pressing Caps Lock results in both Caps Lock and
>> Escape working simultaneously... my type in block letters, and I am
>> unable to type before pressing "i" again.
>> Any idea why is that?
>> --
>> Regards,
>> --
>> To UNSUBSCRIBE, email to debian-desktop-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@lists.debian.org
>> Archive:
>> [🔎] p2p82839db61005032300h4fc40bddxefb8c2f425e1b2c2@mail.gmail.com">http://lists.debian.org/[🔎] p2p82839db61005032300h4fc40bddxefb8c2f425e1b2c2@mail.gmail.com
On Wed, May 5, 2010 at 12:10 AM, Anderson Goulart <anderson@goulart.info> wrote:
> Hello,
> Maybe Xsession sould be done before you could run your .xmodmap. You could
> try 2 things:
> 1) change the name of .xmodmap to .Xmodmap.. some systems are configured to
> load this file with this specific name (case sensitive)
> 2) Open you Xsession file (here is /etc/X11/xdm/Xsession) and put this lines
> at the beginning of the file (after #!/bin/sh)
> if [ -f $HOME/.Xmodmap ]; then
>   /usr/bin/xmodmap $HOME/.Xmodmap
> fi
> Save and login again!
> -- anderson

I am actually using the default Xsession file provided by debian, so I
am a little wary of modifying it. And modifying all "autostart" files
of every dm/wm doesn't look very good... (though that is what I am
doing currently - calling xmodmap from .fvwm/config).

Also, I linked .xmodmap to .Xmodmap, but it didn't help.


Reply to: