I want to use CapsLock as Backspace.
I tried commands below and it works.
setxkbmap -option caps:backspace
xmodmap -e "clear Lock"
But after restarting the computer, I need to type that commands again,how can I make it permanent?
version 18.04
I was able to come up with a solution for Ubuntu 18.04 based on the first reply to Remapping Keys : Ubuntu - Reddit.
Open
/usr/share/X11/xkb/symbols/pc
file in your favorite editor using:And comment out this line:
The difference is just what to put in the new line, which should be:
Afterward, to activate the changes, hit Alt + F2, enter
r
and press Enter to restartgnome-shell
.