Skip to content

Instantly share code, notes, and snippets.

@MartinSadovy
Last active February 18, 2022 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinSadovy/2555f94a621f93d69e679da3f5a56fce to your computer and use it in GitHub Desktop.
Save MartinSadovy/2555f94a621f93d69e679da3f5a56fce to your computer and use it in GitHub Desktop.
macOs czech keyboard for programmers
https://karabiner-elements.pqrs.org/
place my.json to:
/Users/sodae/.config/karabiner/assets/complex_modifications
{
"title": "My non hand breaking keyboard",
"rules": [
{
"description": "Right Command + , to {",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "9",
"modifiers": [
"option"
]
}
]
}
]
},
{
"description": "Right Command + . to }",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "0",
"modifiers": [
"option"
]
}
]
}
]
},
{
"description": "Right Command + ů to $",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "4",
"modifiers": [
"option"
]
}
]
}
]
},
{
"description": "Right Command + 8 to *",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "8",
"modifiers": [
"option"
]
}
]
}
]
},
{
"description": "Right Command + backspace to delete",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "delete_forward"
}
]
}
]
},
{
"description": "Right Command + q to \\",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
]
}
]
},
{
"description": "Right Command + w to |",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde",
"modifiers": [
"shift"
]
}
]
}
]
},
{
"description": "WIP: Disable Right Command",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "right_command"
},
"to": [
{
"key_code": "vk_none"
}
]
}
]
},
{
"description": "Right Command + f10 to mute",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "f10",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "mute"
}
]
}
]
},
{
"description": "Right Command + f11 to decrease volume",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "f11",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "volume_decrement"
}
]
}
]
},
{
"description": "Right Command + f12 to increase volume",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "f12",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "volume_increment"
}
]
}
]
},
{
"description": "Right Command + f1 to display_brightness_decrement",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "f1",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "display_brightness_decrement"
}
]
}
]
},
{
"description": "Right Command + f2 to display_brightness_increment",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "f2",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "display_brightness_increment"
}
]
}
]
},
{
"description": "Right Command + - to *",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"input_source_id": "com.apple.keylayout.Czech"
}
]
}
],
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"right_command"
]
}
},
"to": [
{
"key_code": "8",
"modifiers": [
"option"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment