Skip to content

Instantly share code, notes, and snippets.

@strayge
Created May 12, 2019 10:05
Show Gist options
  • Save strayge/92dedb854152661541e4fb9b2a50e786 to your computer and use it in GitHub Desktop.
Save strayge/92dedb854152661541e4fb9b2a50e786 to your computer and use it in GitHub Desktop.
karabiner complex modifications
{
"title": "Activity Monitor",
"rules": [
{
"description": "Command+Shift+Esc Opens Activity Monitor",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
"modifiers": {
"mandatory": [
"command",
"shift"
]
}
},
"to": [
{
"shell_command": "open -a 'Activity Monitor.app'"
}
],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.microsoft\\.rdc$",
"^com\\.microsoft\\.rdc\\.mac$",
"^com\\.microsoft\\.rdc\\.macos$",
"^com\\.microsoft\\.rdc\\.osx\\.beta$",
"^net\\.sf\\.cord$",
"^com\\.thinomenon\\.RemoteDesktopConnection$",
"^com\\.itap-mobile\\.qmote$",
"^com\\.nulana\\.remotixmac$",
"^com\\.p5sys\\.jump\\.mac\\.viewer$",
"^com\\.p5sys\\.jump\\.mac\\.viewer\\.web$",
"^com\\.teamviewer\\.TeamViewer$",
"^com\\.vmware\\.horizon$",
"^com\\.2X\\.Client\\.Mac$",
"^com\\.vmware\\.fusion$",
"^com\\.vmware\\.horizon$",
"^com\\.vmware\\.view$",
"^com\\.parallels\\.desktop$",
"^com\\.parallels\\.vm$",
"^com\\.parallels\\.desktop\\.console$",
"^org\\.virtualbox\\.app\\.VirtualBoxVM$",
"^com\\.citrix\\.XenAppViewer$",
"^com\\.vmware\\.proxyApp\\.",
"^com\\.parallels\\.winapp\\."
]
}
]
}
]
}
]
}
{
"title": "Command + Arrow Keys",
"rules": [
{
"description": "cmd + Up to Page Up",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "up_arrow",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "page_up"
}
]
}
]
},
{
"description": "cmd + Down to Page Down",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "down_arrow",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "page_down"
}
]
}
]
},
{
"description": "cmd + Left to Home",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "home"
}
]
}
]
},
{
"description": "cmd + Right to End",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock",
"option"
]
}
},
"to": [
{
"key_code": "end"
}
]
}
]
}
]
}
{
"title": "command+backspace to fn+backspace",
"rules": [
{
"description": "command+backspace to fn+backspace",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": [
"command"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": [
"fn"
]
}
]
}
]
}
]
}
{
"title": "Change language with control+shift",
"rules": [
{
"description": "control+shift to control+command+space",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "spacebar",
"modifiers": [
"left_control",
"left_command"
]
}
]
}
]
}
]
}
{
"title": "Lock Screen",
"rules": [
{
"description": "Control+L to Lock Screen (macOS 10.13+)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control"]
}
},
"to": [
{
"key_code": "q",
"modifiers": ["left_control", "left_command"]
}
]
}
]
}
]
}
{
"title": "Pycharm fixes",
"rules": [
{
"description": "cmd+a to ctrl+a",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com.jetbrains.pycharm",
"^com.jetbrains.*"
],
"type": "frontmost_application_if"
}
],
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"left_command"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"left_control"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment