I use Logitech Mouse M705 so I get extra mouse buttons to bind to desired functions.
You need xev
, xbindkeys
and xdotool
installed.
Run to find out the current keyboard/mouse key number:
xev
Copy default settings:
xbindkeys --defaults > ~/.xbindkeysrc
Edit ~/.xbindkeysrc
to set key bindings:
# Mouse Button 10 to Overview
"xdotool key super"
release+b:10
Create ~/.config/autostart/xbindkeys.desktop
to start xbindkeys
when login to desktop environment:
[Desktop Entry]
Name=xbindkeys
Type=Application
Exec=xbindkeys