Eu editei ~/.Xmodmap
para definir o código 118 para Control_L
, para que eu tenha a mesma funcionalidade para CTRL em ambos os lados do espaço. Eu tive que remover e adicionar Control_L
a control
e ele funciona bem agora.
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
Agora, Alt+Tab
não funciona, embora os Alt
s funcionem da mesma maneira. Alt+Tab
com o novo Alt
muda para 1 outro programa e depois volta para o primeiro. Ele não mostra o menu do alternador de tarefas.
Saída de 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)
Saída de xbindkeys -k
para o antigo 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
Saída de xbindkeys -k
para o novo 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
Saída de xev
para o antigo 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
Saída de xev
para o novo 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
Tags keyboard-layout xmodmap x11