Remap Ctrl, Alt and Super keys in Ubuntu 13.10

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 .

+4
6

, , HHK ( ).

. .

clear control
clear mod1
clear mod4

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

add control = Control_L Control_R
add mod1 = Alt_L Alt_R
add mod4 = Super_L Super_R

@d4gg4d Xmodmap. .

+6

, Xmodmap, gnome.

sudo apt-get install gnome-tweak-tool, , "Enter" Ctrl Alt/Win:

enter image description here

, gsettings, , .

+9
  • /usr/share/X11/xkb/symbols/pc
  • Super_L Control_L ( LWIN LCTL RWIN RCTL
key <LWIN> {    [ Super_L       ]   };
key <LCTL> {    [ Control_L     ]   };
key <RWIN> {    [ Super_R       ]   };
key <RCTL> {    [ Control_R     ]   };

 3. rm -rf/var/lib/xkb/*  4. X

+2

, Ubuntu , . , xmodmap .

, ( ). "" :

xmodmap .Xmodmap
+1

, Alt Ctrl (, ctrl to alt), Super Alt Ctrl Super, , , ubuntu 16.10 :

  • hwjp answer, Gnome altwin: ctrl_alt_win,
  • KDE / // altwin: ctrl_alt_win,
  • setxkbmap -option altwin:ctrl_alt_win. , setxkbmap -option.

xmodmap, KDE/Gnome - .

, , Asus . , , Alt , xkb /usr/share/X 11/xkb/symbols/, / - setxkbmap -option tp500:emacs_b_row. , , askubuntu. , 4, sudo. , xkb user259819.

, !

0

Source: https://habr.com/ru/post/1527428/


All Articles