Last active
June 4, 2022 15:49
-
-
Save dapicester/4dd3eaca79d70c04942a2f7151cb0a41 to your computer and use it in GitHub Desktop.
Swap mouse buttons for Orbit Wireless
This file contains hidden or 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
#!/bin/bash | |
case $1 in | |
1|on|yes|true) | |
karabiner_cli --set-variables "{\"orbit_swap_buttons\":1}" | |
;; | |
0|off|no|false) | |
karabiner_cli --set-variables "{\"orbit_swap_buttons\":0}" | |
;; | |
*) | |
;; | |
esac | |
current=$(jq '.variables.orbit_swap_buttons // 0' "/Library/Application Support/org.pqrs/tmp/karabiner_grabber_manipulator_environment.json") | |
echo "Orbit swap buttons: $current" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment