Correct place to put keymap-modifying script?

Danny Colligan dannycolligan at gmail.com
Wed Dec 12 01:26:26 UTC 2007


> Danny Colligan wrote:
> > I want to switch my keymaps such that the Esc key triggers the
> > Caps_Lock function and the Caps_Lock triggers the Esc function,
> > essentially switching the functionality of the keys.  To enable this
> > functionality, I need to run a command like xmodmap
> > .switch_esc_and_capslock where .switch_esc_and_capslock contains the
> > necessary configurations.  Of course, it would be nice to have this
> > command run automatically by placing it in some kind of startup file.
> > Which startup file would be the correct place to put this command if I
> > wanted it to run across all of X and only when I log in?  I'm using
> > the standard X/GNOME Ubuntu configuration.
> >
> > Thanks in advance,
> >
> > Danny
> >
>
> If you want all users to get the changes, /etc/X11/Xsession.d is the
> standard place for X start up scripts.

That works for when I'm the only one using the computer, but what
about a solution which affects only one user's key bindings?

Thanks in advance,

Danny




More information about the ubuntu-users mailing list