重新映射超级密钥有困难

重新映射超级密钥有困难

一直在尝试更改键盘映射。具体来说,就是将超级键重新映射为元键(Alt 键)。

这是我原来

setxkbmap -layout us -variant dvorak
xmodmap -pke | grep "Control\|Alt\|Meta\|Hyper\|Super"

keycode  37 = Control_L NoSymbol Control_L
keycode  64 = Alt_L Meta_L Alt_L Meta_L
keycode 105 = Control_R NoSymbol Control_R
keycode 108 = Alt_R Meta_R Alt_R Meta_R
keycode 133 = Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L

xmodmap -pm
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

这些是我对 所做的更改xmodmap。我想要交换Meta-KeyControl-Key(使 成为Control-Key最接近 的键Space-Key)。接下来,左边是Meta-Key,然后是Hyper-Key

那么展示位置将是

超级键使用 Caps_Lock (Hyper | Meta | Control | Space)

clear lock
clear mod3

!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Set Alt-Key (Meta-Key) to position of Super-Key

clear mod4

keycode 133 = Alt_L Meta_L Alt_L Meta_L
keycode 134 = Alt_R Meta_R Alt_R Meta_R

add mod4 = Alt_L Meta_L Alt_R Meta_R

!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Set Hyper-Key to position of Ctrl-Key

clear mod1

keycode 37 = Hyper_L NoSymbol Hyper_L NoSymbol
keycode 105 = Hyper_R NoSymbol Hyper_R NoSymbol

add mod1 = Hyper_L Hyper_R

!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Set Ctrl-Key to position of Alt-Key (Meta-Key) 

clear control

keycode 64 = Control_L NoSymbol Control_L NoSymbol
keycode 108 = Control_R NoSymbol Control_R NoSymbol

add control = Control_L Control_R 

!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Set Super-Key to position of Caps-Lock

clear mod2

keycode 66 = Super_R NoSymbol Super_R NoSymbol
keycode 207 = Super_L NoSymbol Super_L NoSymbol

add mod2 = Super_L Super_R

相关内容