Primeiro, instale xbindkeys
e xautomation
...
sudo apt-get update
em sudo apt-get install xbindkeys
em sudo apt-get install xbindkeys-config
em sudo apt-get install xautomation
Entenda que é difícil configurar esses can , mas há muitos exemplos para diferentes .xbindkeysrc
online. Aqui está a minha, só para você começar ... você notará que eu já tenho uma configuração de roda do mouse, mas ela está comentada, já que eu não a uso ...
########################### # xbindkeys configuration # ########################### # # Version: 0.1.3 # # If you edit this, do not forget to uncomment any lines that you change. # The pound(#) symbol may be used anywhere for comments. # # A list of keys is in /usr/include/X11/keysym.h and in # /usr/include/X11/keysymdef.h # The XK_ is not needed. # # List of modifier (on my keyboard): # Control, Shift, Mod1 (Alt), Mod2 (NumLock), # Mod3 (CapsLock), Mod4, Mod5 (Scroll). # # Another way to specifie a key is to use 'xev' and set the # keycode with c:nnn or the modifier with m:nnn where nnn is # the keycode or the state returned by xev # # This file is created by xbindkey_config # The structure is : # # Remark # "command" # m:xxx + c:xxx # Shift+... #keystate_numlock = enable #keystate_scrolllock = enable #keystate_capslock = enable "xbindkeys_show" control + shift + q #Zoom In "xte 'keydown Control_L' 'key KP_Add' 'keyup Control_L'" b:13 + Release #Zoom Out "xte 'keydown Control_L' 'key KP_Subtract' 'keyup Control_L'" b:10 + Release #Tab Left #"xte 'keydown Control_L' 'keydown Shift_L' 'key ISO_Left_Tab' 'keyup Control_L' 'keyup Shift_L'" #b:6 + Release #Tab Right #"xte 'keydown Control_L' 'key ISO_Left_Tab' 'keyup Control_L'" #b:7 + Release #bind shift + vertical scroll to horizontal scroll events #(xbindkey '(shift "b:4") "xte 'mouseclick 6'") #(xbindkey '(shift "b:5") "xte 'mouseclick 7'") #Horz scroll Left "xte 'key KP_Right'" b:6 + Release #Horz scroll Right "xte 'key KP_Left'" b:7 + Release # # End of xbindkeys configuration