Last active
January 17, 2022 18:59
-
-
Save m4rr/9c0ee5657786a244c5a32894c60293e5 to your computer and use it in GitHub Desktop.
Keychron K8 Setup
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
{ | |
"title": "Keychron K8 Mic Button to Google Meet Mic Mute", | |
"rules": [ | |
{ | |
"description": "Change Fn+Spacebar to Cmd+D", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { | |
"mandatory": [ | |
"fn" | |
] | |
}, | |
"key_code": "spacebar" | |
}, | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.google\\.Chrome$" | |
] | |
} | |
], | |
"to": [ | |
{ | |
"key_code": "d", | |
"modifiers": [ | |
"left_gui" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
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
{ | |
"title": "insert Button to Google Meet Video On/Off", | |
"rules": [ | |
{ | |
"description": "Change Insert to Cmd+E", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "insert" | |
}, | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.google\\.Chrome$" | |
] | |
} | |
], | |
"to": [ | |
{ | |
"key_code": "e", | |
"modifiers": [ | |
"left_gui" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
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
{ | |
"title": "Setup Volume Keys to Manage Spotify Volume if Scarlett 2i4 & Chrome", | |
"rules": [ | |
{ | |
"description": "Change F11/F12 to Spotify volume -/+ 10 %", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f11" | |
}, | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.google.Chrome" | |
] | |
} | |
], | |
"to": [ | |
{ | |
"shell_command": "osascript -e 'if application \"Spotify\" is running then' -e 'tell application \"Spotify\" to set sound volume to sound volume - 10' -e 'end if'" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f11" | |
}, | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"com.google.Chrome" | |
] | |
} | |
], | |
"to": [ | |
{ | |
"key_code": "volume_decrement" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f12" | |
}, | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"com.google.Chrome" | |
] | |
} | |
], | |
"to": [ | |
{ | |
"shell_command": "osascript -e 'if application \"Spotify\" is running then' -e 'tell application \"Spotify\" to set sound volume to sound volume + 10' -e 'end if'" | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "f12" | |
}, | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"com.google.Chrome" | |
] | |
} | |
], | |
"to": [ | |
{ | |
"key_code": "volume_increment" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Author
m4rr
commented
Jan 16, 2022
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment