2

I want to remap my CapsLock key to work as if it was a Return key. I've created a xmodmap file like this:

remove Lock = Caps_Lock
keycode 66 = Return

If i run it from Terminal:

xmodmap /home/me/mods/remove_caps

It works fine - when I press CapsLock it works as if I pressed Return and CapsLock state does not change. But when I add a command to startup like this:

/bin/bash -c "sleep 20;/usr/bin/xmodmap /home/kuba/mods/caps"

The CapsLock key DOES work as return, but it also changes CapsLock state. The only difference that I can see is that once the xmodmap command is executed 20s after startup, it misses the remove Lock = Caps_Lock line. How can I fix it?

1 Answer 1

1

In Ubuntu 14.04, adding

   /bin/bash -c "sleep 1 && /usr/bin/xmodmap /home/kuba/Settings/xmodmap"

To Autostart Entries does the job

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .