> 2010/5/4 Anonymous bin ich <[email protected]> >> >> 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 [email protected] >> with a subject of "unsubscribe". Trouble? Contact >> [email protected] >> Archive: >> http://lists.debian.org/[email protected] >> > > On Wed, May 5, 2010 at 12:10 AM, Anderson Goulart <[email protected]> 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 > Hi!
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. Regards -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

