How do you add keystroke mappings to en_US to type additional characters?
by ronsmeyer from LinuxQuestions.org on (#5JP3W)
First, I am not trying to change my keyboard language. I want to keep my en_US keyboard. I am using Linux Mint 20.1 and Cinnamon.
I am taking a German language class and I want to add mappings for existing keys on my en_US keyboard to type the German characters A O U . Because copying these characters from Character Map is getting to be a real pain!
For example, what I want to do:
xmodmap tells me the semi-colon, colon key is keycode-47. This is where 'O' is located on the German keyboard.
I still want keycode-47 to type ';' and Shift+keycode-47 to type ':'. Additionally, I want to add mappings so that Alt-L+keycode-47 types 'o' and Cntl-L+keycode-47 types 'O'.
Keysymdef.h tells me 'Odiaeresis' is the keysym name for the character. But when I put that value in .Xmodmap on keycode-47 and run 'xmodmap .Xmodmap', it hard locks the computer and I have to hit 'reset'.
It seems like this should be simple; "Alt-L+this-key types this character", but I've searched and Googled and experimented, and I'm stuck.
Does anyone know how to map a keyboard like this?
I am taking a German language class and I want to add mappings for existing keys on my en_US keyboard to type the German characters A O U . Because copying these characters from Character Map is getting to be a real pain!
For example, what I want to do:
xmodmap tells me the semi-colon, colon key is keycode-47. This is where 'O' is located on the German keyboard.
I still want keycode-47 to type ';' and Shift+keycode-47 to type ':'. Additionally, I want to add mappings so that Alt-L+keycode-47 types 'o' and Cntl-L+keycode-47 types 'O'.
Keysymdef.h tells me 'Odiaeresis' is the keysym name for the character. But when I put that value in .Xmodmap on keycode-47 and run 'xmodmap .Xmodmap', it hard locks the computer and I have to hit 'reset'.
It seems like this should be simple; "Alt-L+this-key types this character", but I've searched and Googled and experimented, and I'm stuck.
Does anyone know how to map a keyboard like this?