Created
March 23, 2018 15:46
-
-
Save ftorto/49ef7c0a50cb683e7c9ab17a2dcb8fd5 to your computer and use it in GitHub Desktop.
Use other mouse buttons in ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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