Added Karabiner modification files

This commit is contained in:
Thomas Naderer
2024-12-18 17:25:30 +01:00
parent e870d7408b
commit 8a84959bdd
10 changed files with 7488 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
{
"title": "Left ctrl + hjkl to Arrow Keys Vim",
"rules": [
{
"description": "Left ctrl + hjkl to arrow keys Vim",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
}
]
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,35 @@
{
"title": "Trackball tools",
"rules": [
{
"description": "The wheel click is fired by pressing the left and right buttons simultaneously.",
"manipulators": [
{
"type": "basic",
"from": {
"simultaneous": [
{ "pointing_button": "button1" },
{ "pointing_button": "button2" }
],
"simultaneous_options": {
"key_up_when": "all"
},
"modifiers": {
"mandatory": [
],
"optional": [
]
}
},
"to": [
{
"pointing_button": "button3",
"modifiers": [
]
}
]
}
]
}
]
}

View File

@@ -0,0 +1,190 @@
{
"title": "Change mouse motion to scroll (rev 3)",
"maintainers": [
"tekezo"
],
"rules": [
{
"description": "Change button3 + mouse motion to scroll wheel (rev 1)",
"available_since": "12.3.0",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button3",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 0
}
}
]
},
{
"type": "mouse_motion_to_scroll",
"from": {
"modifiers": {
"optional": [
"any"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
]
}
]
},
{
"description": "Change button4 + mouse motion to scroll wheel (rev 1)",
"available_since": "12.3.0",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button4",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 0
}
}
]
},
{
"type": "mouse_motion_to_scroll",
"from": {
"modifiers": {
"optional": [
"any"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
]
}
]
},
{
"description": "Change button5 + mouse motion to scroll wheel (rev 1)",
"available_since": "12.3.0",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button5",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "enable_mouse_motion_to_scroll",
"value": 0
}
}
]
},
{
"type": "mouse_motion_to_scroll",
"from": {
"modifiers": {
"optional": [
"any"
]
}
},
"conditions": [
{
"type": "variable_if",
"name": "enable_mouse_motion_to_scroll",
"value": 1
}
]
}
]
},
{
"description": "Change control + mouse motion to scroll wheel (rev 1)",
"available_since": "12.3.0",
"manipulators": [
{
"type": "mouse_motion_to_scroll",
"from": {
"modifiers": {
"mandatory": [
"control"
]
}
}
}
]
},
{
"description": "Change fn + mouse motion to scroll wheel (rev 1)",
"available_since": "12.3.0",
"manipulators": [
{
"type": "mouse_motion_to_scroll",
"from": {
"modifiers": {
"mandatory": [
"fn"
]
}
}
}
]
}
]
}

View File

@@ -0,0 +1,9 @@
{
"profiles": [
{
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
}
]
}

View File

@@ -0,0 +1,86 @@
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Left ctrl + hjkl to arrow keys Vim",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
}
]
},
"devices": [
{
"identifiers": { "is_keyboard": true },
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 620,
"vendor_id": 76
},
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }]
}
]
}
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
}
]
}

View File

@@ -0,0 +1,100 @@
{
"global": {
"ask_for_confirmation_before_quitting": false,
"show_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Left ctrl + hjkl to arrow keys Vim",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_control"],
"optional": ["any"]
}
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
}
]
},
"devices": [
{
"identifiers": { "is_keyboard": true },
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 620,
"vendor_id": 76
},
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "escape" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 45081,
"vendor_id": 1133
},
"ignore": false,
"mouse_flip_horizontal_wheel": true
}
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
}
]
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1481
karabiner/karabiner.json Normal file

File diff suppressed because it is too large Load Diff