メインメニューを開く

差分

ページの作成:「Karabiner-ElementsでShift+Spaceを日本語入力切替に割り当てる # MacではCommand+Spaceを日本語入力にしている。 # UbuntuでSpecial+Spaceを日本…」
Karabiner-ElementsでShift+Spaceを日本語入力切替に割り当てる

# MacではCommand+Spaceを日本語入力にしている。
# UbuntuでSpecial+Spaceを日本語入力に割り当てる方法がわからない。
# 諦めてUbuntuはShift+Spaceにした。
# MacもShift+Spaceにしてこちらに慣れようと思う。

参考
* https://qiita.com/YusukeIwaki/items/83d1d5a9c41f6bf682ee
参考ソースでは左Shiftキーだけを使う設定だったので右Shiftキーも使うようにした。
<source lang="json">
{
"description": "toggle eisuu with shift + space",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": { "mandatory": "left_shift" }
},
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{ "language": "en" }
]
}
],
"to": [{ "key_code": "japanese_kana" }]
},
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": { "mandatory": "left_shift" }
},
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{ "language": "ja" }
]
}
],
"to": [{ "key_code": "japanese_eisuu" }]
},
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": { "mandatory": "right_shift" }
},
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{ "language": "en" }
]
}
],
"to": [{ "key_code": "japanese_kana" }]
},
{
"type": "basic",
"from": {
"key_code": "spacebar",
"modifiers": { "mandatory": "right_shift" }
},
"conditions": [
{
"type": "input_source_if",
"input_sources": [
{ "language": "ja" }
]
}
],
"to": [{ "key_code": "japanese_eisuu" }]
}
]
}
</source>

[[category:macOS]]
[[category:Karabiner-Elements]]