I'm trying to reassign the last line of my keyboard to mimic the Happy Hacking Keyboard layout. I created a file .Xmodmapwith the following code changes. Only lines that have been manually changed in the Xmodmap file generated with are shown below xmodmap -pke > ~/.Xmodmap.
keycode 37 = Super_L NoSymbol Super_L
keycode 64 = Control_L NoSymbol Control_L
keycode 105 = Super_R NoSymbol Super_R
keycode 108 = Control_R NoSymbol Control_R
keycode 133 = Alt_L Meta_L Alt_L Meta_L
keycode 134 = Alt_R Meta_R Alt_R Meta_R
The above changes were downloaded using
xmodmap ~/.Xmodmap
Changes were checked using the xevie Alt: Ctrl, Super: Altand Ctrl: keys Super.
However, when I run emacs, it still remains Alt: the key Alt, Super: Superand Ctrl: Ctrl. And the terminal can only be started by pressing Alt+ Ctrl+ tinstead of Alt+ Super+ t. These applications still reflect the default keyboard layout, and not according to the new configuration in my file $HOME/.Xmodmap.
Added xmodmap ~/.Xmodmapto the file $HOME/.xinitrcso that the changes are permanent for all applications. This is not a job.
In addition, the following code has been added to /etc/X11/xinit/xinitrc. But that didn't work either.
if [ -f $HOME/.Xmodmap ]; then
/usr/bin/xmodmap $HOME/.Xmodmap
fi
Please provide your suggestions.
Thank you for your time.
-Girish
A bit of backgroud:
Ubuntu Windows. Emacs , HHK. RSI .