Skip to content

Instantly share code, notes, and snippets.

@yyoshiki41
Created December 11, 2017 12:47
Show Gist options
  • Save yyoshiki41/e0e94ec7edee0a36c8bae030a96cab87 to your computer and use it in GitHub Desktop.
Save yyoshiki41/e0e94ec7edee0a36c8bae030a96cab87 to your computer and use it in GitHub Desktop.
Karabiner-Elements complex modifications
{
"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