Skip to content

Instantly share code, notes, and snippets.

@ftorto
Created March 23, 2018 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ftorto/49ef7c0a50cb683e7c9ab17a2dcb8fd5 to your computer and use it in GitHub Desktop.
Save ftorto/49ef7c0a50cb683e7c9ab17a2dcb8fd5 to your computer and use it in GitHub Desktop.
Use other mouse buttons in ubuntu
# install deps
sudo apt install xte xbindkeys
# Write default configuration
xbindkeys --defaults > $HOME/.xbindkeysrc
# Detect mouse button code (press desired buttons inside window)
xev -event mouse | grep Button --before-context=1 --after-context=2
# Edit $HOME/.xbindkeysrc
# Example : To bind ALT+TAB on button 10, append to file :
#"xte 'keydown Alt_L' 'key Tab' 'keyup Alt_L'"
# b:10
# Reload config
xbindkeys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment