Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2759  / 1 Year ago, thu, may 11, 2023, 5:49:37

My nephew played with my keyboard and now my S key is out. Is there a way I can change the keyboard layout to attribute the S value to a key I don't use (ie, right Alt)? To make myself crystal clear, is there a way that I can tell Ubuntu that when I press the right Alt, it prints S?


More From » keyboard

 Answers
2

You have to add a line to the .xinitrc file in your home folder, or add a command to your startup scripts. This command will remap your keyboard to use a different key for "s".



The command you have to add will look something like this: xmodmap -e 'keycode <value>=<action>'. You have to replace "value" with the key you will press to represent "action" letter. For example, in your case, you want to reassign the letter E to the right Alt key (a guide for all the different key codes is here). I don't know how to assign S to the right Alt key but the Left Alt key is no problem. Make a command like this: xmodmap -e 'keycode 64=s' and add it to your startup scripts.


[#41338] Saturday, May 13, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
scusaper

Total Points: 335
Total Questions: 111
Total Answers: 119

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
;