Skip to content

Commit

Permalink
style: update
Browse files Browse the repository at this point in the history
  • Loading branch information
okhiroyuki committed Feb 3, 2025
1 parent 9348305 commit 733f43a
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 142 deletions.
22 changes: 11 additions & 11 deletions config/karabiner/assets/complex_modifications/ctrlm_to_enter.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
{
"description": "Ctrl-M を Enter に変換",
"manipulators": [
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["control"],
"optional": ["left_shift", "left_option", "left_command"]
}
},
"to": [{ "key_code": "return_or_enter" }],
"type": "basic"
}
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["control"],
"optional": ["left_shift", "left_option", "left_command"]
}
},
"to": [{ "key_code": "return_or_enter" }],
"type": "basic"
}
]
}
]
Expand Down
262 changes: 131 additions & 131 deletions config/karabiner/karabiner.json
Original file line number Diff line number Diff line change
@@ -1,134 +1,134 @@
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "漢字を esc に変換",
"manipulators": [
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "escape" }],
"type": "basic"
}
]
},
{
"description": "英数+hjklで移動",
"manipulators": [
{
"from": {
"key_code": "japanese_eisuu",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"set_variable": {
"name": "vk1",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "vk1",
"value": 0
}
}
],
"to_if_alone": [{ "key_code": "japanese_eisuu" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
},
{
"description": "Ctrl-M を Enter に変換",
"manipulators": [
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["control"],
"optional": ["left_shift", "left_option", "left_command"]
}
},
"to": [{ "key_code": "return_or_enter" }],
"type": "basic"
}
]
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "漢字を esc に変換",
"manipulators": [
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "escape" }],
"type": "basic"
}
]
},
{
"description": "英数+hjklで移動",
"manipulators": [
{
"from": {
"key_code": "japanese_eisuu",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"set_variable": {
"name": "vk1",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "vk1",
"value": 0
}
]
},
"name": "Default profile",
"selected": true,
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
}
],
"virtual_hid_keyboard": { "keyboard_type_v2": "jis" }
}
],
"to_if_alone": [{ "key_code": "japanese_eisuu" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "h",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
},
{
"conditions": [
{
"name": "vk1",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
},
{
"description": "Ctrl-M を Enter に変換",
"manipulators": [
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["control"],
"optional": ["left_shift", "left_option", "left_command"]
}
},
"to": [{ "key_code": "return_or_enter" }],
"type": "basic"
}
]
}
]
},
"name": "Default profile",
"selected": true,
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
}
]
}
],
"virtual_hid_keyboard": { "keyboard_type_v2": "jis" }
}
]
}

0 comments on commit 733f43a

Please sign in to comment.