How to execute command (to swap keys) at login?
cpet at sdf.org
cpet at sdf.org
Fri Dec 19 13:15:40 UTC 2014
On Wed, Dec 17, 2014 at 11:55:14PM -0500, jenia.ivlev wrote:
> Hello.
> I want to swap the ctrl and caps keys at start up. So I left this code
> in .xinitrc and it didnt do anything:
>
> /usr/bin/setxkbmap -option 'ctrl:menu_rctrl' -option 'ctrl:swapcaps'
>
> When do I leave this command for it to be executed automatically at
> login?
>
> I though maybe in `~/.config/autostart/swap-caps-ctrl.desktop`?
>
> In contrast, when I leave it in .bashrc, and as soon as I start a terminal, the keys
> are swapped.
>
> So again, where can I leave the `/usr/bin/setxkbmap -option
> 'ctrl:menu_rctrl' -option 'ctrl:swapcaps'` command to execute it
> automatically at login?
>
> Thanks in advance for your kind help.
>
> _______________________________________________
> freebsd-x11 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"
Include this command into your .xinitrc and it will get run when you startx. As well as if you use KDM or *DM add it to your xsession either in your home folder or globally in /etc/X11/ or whatever it is.
More information about the freebsd-x11
mailing list