Reassign broken Esc key in 19.1
Suggestions I found online to reassign keys in Linux either don't apply
How to re-assign my broken Esc key to any other key combination? Thanks. I have Cinnamon desktop. |
Just so I understand correctly, your Esc key is broken and you want to program another key or key combination to generate Esc?
|
Yes.
|
Ok, in that case, for a while (until I bought myself a new keyboard and installed it in my laptop), I had a very intermittent "i" key so reprogrammed the F9 key to produce "i"'s in a Linux Mint 19 system. Here's how I did it:
I first ran the following command and pressed the relevant keys to find out the keycodes for the "i" key and the "F9" key: Code:
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p' I then ran the following to determine the exact text in the lines relating to both these keys: Code:
xmodmap -pke Code:
sudo xed ~/.Xmodmap Code:
xmodmap ~/.Xmodmap Code:
bash -c "sleep 10 && /usr/bin/xmodmap /home/$USER/.Xmodmap" |
All times are GMT -5. The time now is 02:58 PM. |