-
Instale o pacote
xautomation, precisamos do comandoxtesudo apt-get install xautomation -
Instale o pacote
x11-utils, precisamos do comandoxevsudo apt-get install x11-utils -
Verifique o código dos dois botões do mouse.
-
Inicie o comando
xevem um terminal:xev -
Mova o mouse na nova janela
-
Pressione os botões extras do mouse
No meu caso, observe a saída
button 8ebutton 9:ButtonRelease event, serial 36, synthetic NO, window 0x2e00001, root 0x233, subw 0x0, time 9222464, (94,21), root:(1774,85), state 0x10, button 8, same_screen YES ButtonPress event, serial 36, synthetic NO, window 0x2e00001, root 0x233, subw 0x0, time 9223854, (94,21), root:(1774,85), state 0x10, button 9, same_screen YES -
-
Edite sua configuração
xbindkeys, por exemplo:nano ~/.xbindkeysrce adicione as seguintes linhas
"xte 'key Home'" b:9 "xte 'key End'" b:8Substitua
b:8eb:9pelos números dexevoutput-
de
man xtekey k Press and release key k keydown k Press key k down keyup k Release key k
-
-
Mate todos os processos
kbindkeyskillall xbindkeys -
Reinicie o
xbindkeyscom sua configuração, por exemplo:xbindkeys -f ~/.xbindkeysrc