I want to map Backspace to the Caps Lock key, and vice versa. I was successful in using this. The only issue is autorepeat. I can use these commands to respectively disable autorepeat on Backspace(my new capslock) and enable it on Caps Lock(my new backspace), in the current session:

xset -r 22
xset r 66

But I don't know where to put these to enable them at the start of each X session. Tried putting them in .xinitrc after xmodmap .Xmodmap, that didn't work. Also tried putting them in System > Preferences > Startup Applications, no luck there either.

Another thing is, after doing the remapping, Caps Lock not only has the Backspace functionality, it also acts as Shift. Meaning it capitalizes any letter I type while it's pressed.

EDIT: figured out how to solve the Shift issue, with this xmodmap command: remove shift = BackSpace

link|improve this question

0% accept rate
Try putting them at the end of your ~/.bashrc file. I don't know if that'll work or not. – ed. Sep 16 '11 at 14:42
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.