I want it like this:
BackSpace -> backslash
Shift + BackSpace -> bar
backslash -> BackSpace
I tried to use xbindkeys and xdotool, but I couldn't get it to work. This is what I had in my .xbindkeysrc file:
"xdotool key bar"
shift + BackSpace
"xdotool key backslash"
BackSpace
"xdotool key BackSpace"
backslash
However, all this would do is make my keys stop working.