Created
December 11, 2017 12:47
-
-
Save yyoshiki41/e0e94ec7edee0a36c8bae030a96cab87 to your computer and use it in GitHub Desktop.
Karabiner-Elements complex modifications
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": "slack", | |
"rules": [ | |
{ | |
"description": "cmd + n :Move next channel or DM in slack (unread if shift is pressed).", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "n", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.tinyspeck\\.slackmacgap$" | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "cmd + p :Move previous channel or DM in slack (unread if shift is pressed).", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "p", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.tinyspeck\\.slackmacgap$" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment