Created
December 11, 2019 21:54
-
-
Save owainharris/05a855826ffdbe04398f883479a342fc to your computer and use it in GitHub Desktop.
Logitech MX Anywhere S2 button binding for Linux using xbindkeys
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
########################### | |
# xbindkeys configuration # | |
########################### | |
# | |
## INSTRUCTIONS FOR MAPPING LOGITCH ANYWHERE S2 KEYS TO WORKSPACES IN UBUNTU 19.10 | |
# | |
## INSTALL XBINDKEYS | |
# sudo apt-get install xbindkeys | |
# | |
## CREATE CONFIG FILE | |
# xbindkeys --defaults > $HOME/.xbindkeysrc | |
# | |
## EDIT THE CONFIG FILE | |
# sudo gedit $HOME/.xbindkeysrc | |
# OR USE NANO / VIM | |
# | |
## PASTE THIS INTO THE FILE | |
# | |
## RESTART XBINDKEYS | |
# sudo killall xbindkeys && xbindkeys | |
# | |
## INSTALL XAUTOMATION | |
# sudo apt-get install xautomation | |
# | |
## RUN THE FOLLOWING COMMANDS IN THE TERMINAL | |
# xte 'keydown Super_L' 'key S' 'keyup Super_L' | |
# xte 'keydown Control_L' 'keydown Alt_L' 'key Up' 'keyup Control_L' 'keyup Alt_L' | |
# xte 'keydown Control_L' 'keydown Alt_L' 'key Down' 'keyup Control_L' 'keyup Alt_L' | |
# | |
# configure 'xbindkeys' to run automatically on system startup. Startup Applications / Add program button and type '/usr/bin/xbindkeys' on the dialog | |
# | |
# | |
# | |
## BELOW IS THE CONFIG NEEDED IN THIS FILE ($HOME/.xbindkeysrc) | |
# | |
# | |
# Workspaces | |
"xte 'keydown Super_L' 'key S' 'keyup Super_L'" | |
b:2 | |
# Workspace up | |
"xte 'keydown Control_L' 'keydown Alt_L' 'key Up' 'keyup Control_L' 'keyup Alt_L'" | |
b:6 | |
# Workspace Down | |
"xte 'keydown Control_L' 'keydown Alt_L' 'key Down' 'keyup Control_L' 'keyup Alt_L'" | |
b:7 | |
################################## | |
# End of xbindkeys configuration # | |
################################## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment