Skip to content

Instantly share code, notes, and snippets.

@m4rr
Last active January 17, 2022 18:59
Show Gist options
  • Save m4rr/9c0ee5657786a244c5a32894c60293e5 to your computer and use it in GitHub Desktop.
Save m4rr/9c0ee5657786a244c5a32894c60293e5 to your computer and use it in GitHub Desktop.
Keychron K8 Setup
{
"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"
]
}
]
}
]
}
]
}
{
"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"
]
}
]
}
]
}
]
}
{
"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"
}
]
}
]
}
]
}
@m4rr
Copy link
Author

m4rr commented Jan 16, 2022

$ cd ~/.config/karabiner/assets/complex_modifications/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment