On 4/10/06, Robert Cussons <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I at the moment have a little file that I got from somewhere, probably
> in the vim tips, that swaps caps lock and escape around this is it:
>
> remove Lock = Caps_Lock
> keysym Escape = Caps_Lock
> keysym Caps_Lock = Escape
> add Lock = Caps_Lock
>
> but this means that each time I have logged out, I have to remember to
> run xmodmap ~/.speedswapper (the name of the file) otherwise I start
> getting strange effects from running pressing K instead of k for example.
> I have tried including this in .bashrc and things to run automatically
> on login but couldn't get it to work, then I just thought this morning,
> it would be much more sensible to have it written into my .vimrc. Only
> trouble being I have no idea how to do this, answers on the back of a
> postcard to this address would be greatly appreciated (e-mail will do).

You can add your xmodmap command to your ~/.xinitrc
This is a file which is executed when X server starts.
If your gui doesn't restart X after logout, you'll want to reconfigure
it to restart X when you log out.

Yakov

Reply via email to