Last active
January 24, 2019 21:05
-
-
Save dekalo-stanislav/5816a1027d25a5b82c27562c68eff8a4 to your computer and use it in GitHub Desktop.
Ubuntu like karabiner config for Mac OS
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
| { | |
| "global": { | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": true, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { | |
| "basic.simultaneous_threshold_milliseconds": 50, | |
| "basic.to_delayed_action_delay_milliseconds": 500, | |
| "basic.to_if_alone_timeout_milliseconds": 1000, | |
| "basic.to_if_held_down_threshold_milliseconds": 500 | |
| }, | |
| "rules": [ | |
| { | |
| "description": "Ubuntu style switch workspaces", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "left_arrow", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "command" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_arrow", | |
| "modifiers": [ | |
| "control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "right_arrow", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "command" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_arrow", | |
| "modifiers": [ | |
| "control" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "PC-Style Select-All", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "a", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "a", | |
| "modifiers": [ | |
| "left_command" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Control for navigation by words", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "left_arrow", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_arrow", | |
| "modifiers": [ | |
| "left_option" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "right_arrow", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_arrow", | |
| "modifiers": [ | |
| "left_option" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "PC-Style New Tab", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "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\\.vmware\\.proxyApp\\.", | |
| "^com\\.parallels\\.winapp\\.", | |
| "^com\\.apple\\.Terminal$", | |
| "^com\\.googlecode\\.iterm2$", | |
| "^co\\.zeit\\.hyperterm$", | |
| "^co\\.zeit\\.hyper$", | |
| "^io\\.alacritty$", | |
| "^net\\.kovidgoyal\\.kitty$" | |
| ], | |
| "type": "frontmost_application_unless" | |
| } | |
| ], | |
| "from": { | |
| "key_code": "t", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "t", | |
| "modifiers": [ | |
| "left_command" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "PC-Style Close Window", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "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\\.vmware\\.proxyApp\\.", | |
| "^com\\.parallels\\.winapp\\.", | |
| "^com\\.apple\\.Terminal$", | |
| "^com\\.googlecode\\.iterm2$", | |
| "^co\\.zeit\\.hyperterm$", | |
| "^co\\.zeit\\.hyper$", | |
| "^io\\.alacritty$", | |
| "^net\\.kovidgoyal\\.kitty$" | |
| ], | |
| "type": "frontmost_application_unless" | |
| } | |
| ], | |
| "from": { | |
| "key_code": "w", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "w", | |
| "modifiers": [ | |
| "left_command" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "PC-Style Copy/Paste/Cut", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "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\\.vmware\\.proxyApp\\.", | |
| "^com\\.parallels\\.winapp\\.", | |
| "^com\\.apple\\.Terminal$", | |
| "^com\\.googlecode\\.iterm2$", | |
| "^co\\.zeit\\.hyperterm$", | |
| "^co\\.zeit\\.hyper$", | |
| "^io\\.alacritty$", | |
| "^net\\.kovidgoyal\\.kitty$" | |
| ], | |
| "type": "frontmost_application_unless" | |
| } | |
| ], | |
| "from": { | |
| "key_code": "c", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "c", | |
| "modifiers": [ | |
| "left_command" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "conditions": [ | |
| { | |
| "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\\.vmware\\.proxyApp\\.", | |
| "^com\\.parallels\\.winapp\\.", | |
| "^com\\.apple\\.Terminal$", | |
| "^com\\.googlecode\\.iterm2$", | |
| "^co\\.zeit\\.hyperterm$", | |
| "^co\\.zeit\\.hyper$", | |
| "^io\\.alacritty$", | |
| "^net\\.kovidgoyal\\.kitty$" | |
| ], | |
| "type": "frontmost_application_unless" | |
| } | |
| ], | |
| "from": { | |
| "key_code": "v", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "v", | |
| "modifiers": [ | |
| "left_command" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "conditions": [ | |
| { | |
| "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\\.vmware\\.proxyApp\\.", | |
| "^com\\.parallels\\.winapp\\.", | |
| "^com\\.apple\\.Terminal$", | |
| "^com\\.googlecode\\.iterm2$", | |
| "^co\\.zeit\\.hyperterm$", | |
| "^co\\.zeit\\.hyper$", | |
| "^io\\.alacritty$", | |
| "^net\\.kovidgoyal\\.kitty$" | |
| ], | |
| "type": "frontmost_application_unless" | |
| } | |
| ], | |
| "from": { | |
| "key_code": "x", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control" | |
| ], | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "x", | |
| "modifiers": [ | |
| "left_command" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "devices": [ | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 636, | |
| "vendor_id": 1452 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": true, | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "key_code": "grave_accent_and_tilde" | |
| }, | |
| "to": { | |
| "key_code": "non_us_backslash" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "non_us_backslash" | |
| }, | |
| "to": { | |
| "key_code": "grave_accent_and_tilde" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 49948, | |
| "vendor_id": 1133 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "key_code": "left_command" | |
| }, | |
| "to": { | |
| "key_code": "left_option" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "left_option" | |
| }, | |
| "to": { | |
| "key_code": "left_command" | |
| } | |
| } | |
| ] | |
| } | |
| ], | |
| "fn_function_keys": [ | |
| { | |
| "from": { | |
| "key_code": "f1" | |
| }, | |
| "to": { | |
| "consumer_key_code": "display_brightness_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f2" | |
| }, | |
| "to": { | |
| "consumer_key_code": "display_brightness_increment" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f3" | |
| }, | |
| "to": { | |
| "key_code": "mission_control" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f4" | |
| }, | |
| "to": { | |
| "key_code": "launchpad" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f5" | |
| }, | |
| "to": { | |
| "key_code": "illumination_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f6" | |
| }, | |
| "to": { | |
| "key_code": "illumination_increment" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f7" | |
| }, | |
| "to": { | |
| "consumer_key_code": "rewind" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f8" | |
| }, | |
| "to": { | |
| "consumer_key_code": "play_or_pause" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f9" | |
| }, | |
| "to": { | |
| "consumer_key_code": "fastforward" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f10" | |
| }, | |
| "to": { | |
| "consumer_key_code": "mute" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f11" | |
| }, | |
| "to": { | |
| "consumer_key_code": "volume_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f12" | |
| }, | |
| "to": { | |
| "consumer_key_code": "volume_increment" | |
| } | |
| } | |
| ], | |
| "name": "Built-In as ubuntu like", | |
| "selected": true, | |
| "simple_modifications": [], | |
| "virtual_hid_keyboard": { | |
| "country_code": 0 | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment