Created
December 18, 2023 04:28
-
-
Save mountainash/3a1ab94608973740b6581d759bf5c77b to your computer and use it in GitHub Desktop.
karabiner-logitech-SPOTLIGHT-volume-up-or-click
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
{ | |
"description": "Allows you to click by double tapping the • key to 'click', only pressing • key once will volume up after a short delay.", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"name": "button1 pressed", | |
"type": "variable_if", | |
"value": 1 | |
} | |
], | |
"from": { | |
"pointing_button": "button1" | |
}, | |
"to": { | |
"pointing_button": "button1" | |
}, | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"pointing_button": "button1" | |
}, | |
"to": [ | |
{ | |
"set_variable": { | |
"name": "button1 pressed", | |
"value": 1 | |
} | |
} | |
], | |
"parameters": { | |
"basic.to_delayed_action_delay_milliseconds": 250 | |
}, | |
"to_delayed_action": { | |
"to_if_canceled": [ | |
{ | |
"set_variable": { | |
"name": "button1 pressed", | |
"value": 0 | |
} | |
} | |
], | |
"to_if_invoked": [ | |
{ | |
"set_variable": { | |
"name": "button1 pressed", | |
"value": 0 | |
} | |
}, | |
{ | |
"key_code": "volume_increment" | |
} | |
] | |
}, | |
"type": "basic" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment