Skip to content

Instantly share code, notes, and snippets.

@monry
Last active July 30, 2022 13:46
Show Gist options
  • Save monry/62c0804e0c0e7f4a63ce007f9364aada to your computer and use it in GitHub Desktop.
Save monry/62c0804e0c0e7f4a63ce007f9364aada to your computer and use it in GitHub Desktop.
Karabiner-Elements 用設定
{
"title": "Customized by @monry",
"rules": [
{
"description": "capslock キーを IME のトグルに割り当て",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 100,
"basic.to_if_held_down_threshold_milliseconds": 500
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
],
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"language": "^en$"
}
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 100,
"basic.to_if_held_down_threshold_milliseconds": 500
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"language": "^ja$"
}
]
}
]
}
]
},
{
"description": "fn キーを IME のトグルに割り当て",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "fn",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn"
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
],
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"language": "^en$"
}
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "fn",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "fn"
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{
"language": "^ja$"
}
]
}
]
}
]
},
{
"description": "capslock キーを left_control に割り当て",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
]
}
]
},
{
"description": "capslock キーを left_control に割り当て、空打ちを f13 に割り当て",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "f13"
}
]
}
]
},
{
"description": "Change ¥ to Alt+¥",
"manipulators": [
{
"from": {
"key_code": "backslash"
},
"to": [
{
"key_code": "backslash",
"modifiers": [
"option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change Alt+¥ to ¥",
"manipulators": [
{
"from": {
"key_code": "backslash",
"modifiers": {
"mandatory": [
"option"
]
}
},
"to": [
{
"key_code": "backslash"
}
],
"type": "basic"
}
]
},
{
"description": "左右 option キーをかな/英数に割り当て",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_option"
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_option"
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
]
}
]
},
{
"description": "fn + g で Gyazo 起動",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "g",
"modifiers": { "mandatory": [ "fn" ] }
},
"to": [
{ "shell_command": "open -a 'Gyazo'" }
]
}
]
},
{
"description": "fn + shift + g で Gyazo GIF 起動",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "g",
"modifiers": { "mandatory": [ "fn", "shift" ] }
},
"to": [
{ "shell_command": "open -a 'Gyazo GIF'" }
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment