Created
February 3, 2023 09:38
-
-
Save djmango/dfbdbe628bd15c567b7c363ede0a916b to your computer and use it in GitHub Desktop.
Karabiner Complex Modification - VSCode Use Function Keys
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": "Function keys work as fn keys (instead of media keys)", | |
| "rules": [ | |
| { | |
| "description": "(Atom, CKII, EUIV, iTerm, muCommander, PyCharm, VSCode, WebStorm, AndroidStudio) Function keys work as fn keys", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f1", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f1" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f2", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f2" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f3", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f3" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f4", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f4" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f5", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f5" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f6", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f6" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f7", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f7" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f8", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f8" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f9", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f9" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f10", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f10" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f11", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f11" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f12", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "f12" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_if", | |
| "file_paths": [ | |
| "ck2\\.app", | |
| "eu4\\.app" | |
| ], | |
| "bundle_identifiers": [ | |
| "com.github.atom", | |
| "com.googlecode.iterm2", | |
| "com.mucommander.muCommander", | |
| "com.jetbrains.pycharm", | |
| "com.microsoft.VSCode", | |
| "com.jetbrains.WebStorm", | |
| "com.google.android.studio" | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment