Created
September 10, 2021 02:45
-
-
Save trustin/510420bd772ef2077be358060e175a73 to your computer and use it in GitHub Desktop.
Trustin's Karabiner-Elements settings
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, | |
"mouse_motion_to_scroll.speed": 100 | |
}, | |
"rules": [ | |
{ | |
"manipulators": [ | |
{ | |
"description": "Caps Lock to Hyper", | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_shift", | |
"modifiers": [ | |
"left_command", | |
"left_control", | |
"left_option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "₩ to ` when on Korean layout", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"input_sources": [ | |
{ | |
"language": "ko" | |
} | |
], | |
"type": "input_source_if" | |
} | |
], | |
"from": { | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "grave_accent_and_tilde", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Shift+Spacebar to Command+Control+Shift+Space", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "spacebar", | |
"modifiers": { | |
"mandatory": [ | |
"left_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "spacebar", | |
"modifiers": [ | |
"left_command", | |
"left_control", | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Option+Shift+Spacebar to Command+Control+Option+Shift+Space", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "spacebar", | |
"modifiers": { | |
"mandatory": [ | |
"left_option", | |
"left_shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "spacebar", | |
"modifiers": [ | |
"left_command", | |
"left_control", | |
"left_option", | |
"left_shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Option+Tab to Command+Tab", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"com.microsoft.rdc.macos" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "tab", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "tab", | |
"modifiers": [ | |
"left_command" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "PrintScreen to open Screenshot", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "print_screen" | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a Screenshot.app" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+\\ to play or pause", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "backslash", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "play_or_pause" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+[ to previous track", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "open_bracket", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "scan_previous_track" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+[ to next track", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "close_bracket", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "scan_next_track" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+W to open a new Vivaldi browser tab", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "w", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "/Applications/Vivaldi.app/Contents/MacOS/Vivaldi about:blank" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+S to open iTerm", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"com.googlecode.iterm2" | |
], | |
"type": "frontmost_application_unless" | |
} | |
], | |
"from": { | |
"key_code": "s", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a iTerm.app" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+E to open Finder", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "e", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open ~" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+L to Command+Control+Q (lock)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "q", | |
"modifiers": [ | |
"left_command", | |
"left_control" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Hyper+Delete to open Activity Monitor", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "delete_forward", | |
"modifiers": { | |
"mandatory": [ | |
"command", | |
"control", | |
"option", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open -a 'Activity Monitor.app'" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [], | |
"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": [ | |
{ | |
"apple_vendor_keyboard_key_code": "mission_control" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f4" | |
}, | |
"to": [ | |
{ | |
"apple_vendor_keyboard_key_code": "spotlight" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f5" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "dictation" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f6" | |
}, | |
"to": [ | |
{ | |
"key_code": "f6" | |
} | |
] | |
}, | |
{ | |
"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": "fast_forward" | |
} | |
] | |
}, | |
{ | |
"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": "Default profile", | |
"parameters": { | |
"delay_milliseconds_before_open_device": 1000 | |
}, | |
"selected": true, | |
"simple_modifications": [], | |
"virtual_hid_keyboard": { | |
"country_code": 0, | |
"indicate_sticky_modifier_keys_state": true, | |
"mouse_key_xy_scale": 100 | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment