So I want to turn capslock into ctrl. From my google-fu the command to run is /usr/bin/setxkbmap -option "ctrl:nocaps"
and it works when I run it at the terminal. But when I place it on 'Startup Appliacations' the command fails to take effect. Any idea why?
Asked
Active
Viewed 363 times
1

PuercoPop
- 143
- 6
2 Answers
3
On recent Ubuntu versions there's a dconf option (if you are using GNOME or Unity):
org.gnome.desktop.input-sources xkb-options
which you can set via dconf-editor or gsettings. For example,
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
This option is permanent across reboots.

edwin
- 3,799
- 20
- 33
1
You don't need to put this /usr/bin/setxkbmap -option "ctrl:nocaps"
command on startup applications.Hust place it inside ~/.bashrc
file.
gedit ~/.bashrc
Add this line to the .bashrc
file,
/usr/bin/setxkbmap -option "ctrl:nocaps"
Logout and loginback to take effect.

Avinash Raj
- 78,556
-
1Thanks for the workaround, but I am curious why it is Startup Applicaions not working as intented. – PuercoPop Apr 12 '14 at 11:46
xorg.conf
. (i.e.Option "XKbOptions" "ctrl:nocaps"
.) – Sparhawk Apr 12 '14 at 11:46