Skip to content

Instantly share code, notes, and snippets.

@mountainash
Created December 18, 2023 04:28
Show Gist options
  • Save mountainash/3a1ab94608973740b6581d759bf5c77b to your computer and use it in GitHub Desktop.
Save mountainash/3a1ab94608973740b6581d759bf5c77b to your computer and use it in GitHub Desktop.
karabiner-logitech-SPOTLIGHT-volume-up-or-click
{
"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