How to execute command (to swap keys) at login?
jenia.ivlev
jenia.ivlev at gmail.com
Sat Dec 20 02:56:59 UTC 2014
cpet at sdf.org writes:
> 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.
> _______________________________________________
> 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"
Thanks a lot. This is the fix that i found, maybe it would be useful to someone.
I need to leave this in .xprofile, I use gdm as a login manager.
Or I can use autostart, and leave a little config file in
~/.config/autostart/something.desktop
More information about the freebsd-x11
mailing list