我编辑~/.Xmodmap
将键码 118 设置为Control_L
,以便我在 Space 两侧具有相同的 CTRL 功能。我必须删除并添加Control_L
,control
现在工作正常。
keycode 127 = Insert
remove control = Control_L
keycode 118 = Control_L
add control = Control_L
keycode 135 = ISO_Level3_Shift
keycode 108 = space
remove mod1 = Alt_L
keycode 94 = Alt_L ISO_Next_Group Alt_L ISO_Next_Group
add mod1 = Alt_L
现在Alt+Tab
不起作用,即使两者Alt
的工作方式相同。Alt+Tab
新Alt
切换到另一个程序,然后返回第一个程序。它根本不显示任务切换器菜单。
输出xmodmap -pm
:
[hax@localhost ~]$ 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), Control_L (0x76)
mod1 Alt_L (0x40), Alt_L (0x5e), Alt_L (0xcc), 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), space (0x6c), ISO_Level3_Shift (0x87), Mode_switch (0xcb)
xbindkeys -k
旧版的输出Alt
:
[hax@localhost ~]$ xbindkeys -k
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"NoCommand"
m:0x8 + c:64
Alt + Alt_L
xbindkeys -k
新的输出Alt
:
[hax@localhost ~]$ xbindkeys -k
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"NoCommand"
m:0x8 + c:94
Alt + Alt_L
xev
旧版的输出Alt
:
KeyPress event, serial 37, synthetic NO, window 0x3e00001,
root 0x9b, subw 0x0, time 10657877, (328,658), root:(1612,798),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 40, synthetic NO, window 0x3e00001,
root 0x9b, subw 0x0, time 10657981, (328,658), root:(1612,798),
state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
xev
新的输出Alt
:
KeyPress event, serial 40, synthetic NO, window 0x3e00001,
root 0x9b, subw 0x0, time 10659997, (328,658), root:(1612,798),
state 0x0, keycode 94 (keysym 0xffe9, Alt_L), same_screen YES,
XKeysymToKeycode returns keycode: 64
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 40, synthetic NO, window 0x3e00001,
root 0x9b, subw 0x0, time 10660077, (328,658), root:(1612,798),
state 0x8, keycode 94 (keysym 0xffe9, Alt_L), same_screen YES,
XKeysymToKeycode returns keycode: 64
XLookupString gives 0 bytes:
XFilterEvent returns: False