My left directional key on my old HP laptop gave way, so I tried to remap it. I found a command in
this topic that enabled me to remap my left key to my right shift key:
Code: Select all
sudo sed -i '29s|.*|key<RTSH>{[Left]};|' \
/usr/share/X11/xkb/symbols/pc \
&& sudo dpkg-reconfigure xkb-data
I, however, wanted to remap my left key to my right ctrl key, because it was closer to the original location of my left key, so I altered the command without really understanding what I was doing, this is approximately what I typed in:
Code: Select all
sudo sed -i '29s|.*|key<RTSH>{[Left]};{[Ctrl_R]}|' \
/usr/share/X11/xkb/symbols/pc \
&& sudo dpkg-reconfigure xkb-data
This command completely ruined my OS's keyboard inputs and now not even the on-screen keyboard works. Is this situation resolvable or will I have to reinstall my OS? I'd imagine I'd have to manipulate something externally since I literally can't use the keyboard now.