Skip to content

Instantly share code, notes, and snippets.

@j18e
Last active January 30, 2019 13:27
Show Gist options
  • Save j18e/164cf9e38118a1b72a68f60c0649c4eb to your computer and use it in GitHub Desktop.
Save j18e/164cf9e38118a1b72a68f60c0649c4eb to your computer and use it in GitHub Desktop.
App switching, Norwegian characters, ctrl/esc over caps, hyper using Karabiner elements on mac
{
"global": {
"check_for_updates_on_startup": false,
"show_in_menu_bar": false,
"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": [
{
"manipulators": [
{
"description": "focus mail",
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"tab"
]
}
},
"to": [
{
"shell_command": "open -a mail"
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "focus slack",
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"tab"
]
}
},
"to": [
{
"shell_command": "open -a slack"
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "focus firefox",
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"tab"
]
}
},
"to": [
{
"shell_command": "open -a firefox"
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "focus iterm",
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"tab"
]
}
},
"to": [
{
"shell_command": "open -a iterm"
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "norsk å",
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"right_option"
]
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "norsk æ",
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "quote",
"modifiers": [
"right_option"
]
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "norsk ø",
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
},
"to": [
{
"key_code": "o",
"modifiers": [
"right_option"
]
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "hyper",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": [
"left_command",
"left_control",
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "caps_to_lctrl_esc",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"manipulators": [
{
"description": "rctrl_to_lctrl_esc",
"from": {
"key_code": "right_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
}
]
},
"devices": [],
"name": "Default profile",
"selected": true,
"simple_modifications": [],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment