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