Extra Mouse Buttons
Setup xbindkeys
- Install xbindkeys
sudo apt-get install xbindkeys
- Create default configuration
xbindkeys --defaults > $HOME/.xbindkeysrc
- Optionally install xbindkeys-config
sudo apt-get install xbindkeys-config
Note: Create the config file withxbindkeys --defaults > $HOME/.xbindkeysrc
before using the graphical application otherwise it will crash on saving.
Configure xbindkeys
Edit ~/.xbindkeysrc
and add at the end:
# Ctrl + Logitech M705 Thumb
"chromium-browser www.google.com/ncr"
control + m:0x10 + b:10 + release
# Logitech M705 Thumb
"xdotool key Super_L+d"
m:0x10 + b:10 + release
Note: If you use the xbindkeys-config
to setup the different keys/buttons, don't forget to add the + release
handler to the mouse buttons, by editing the ~/.xbindkeysrc
.
Source #1: Release handler for extra mouse buttons
Source #2: Sending key presses
Restart xbindkeys
pkill -f xbindkeys
xbindkeys