「Karabiner-ElementsでShift+Spaceを日本語入力切替に割り当てる」の版間の差分

提供: MonoBook
ナビゲーションに移動 検索に移動
(ページの作成:「Karabiner-ElementsでShift+Spaceを日本語入力切替に割り当てる # MacではCommand+Spaceを日本語入力にしている。 # UbuntuでSpecial+Spaceを日本…」)
 
1行目: 1行目:
 
Karabiner-ElementsでShift+Spaceを日本語入力切替に割り当てる
 
Karabiner-ElementsでShift+Spaceを日本語入力切替に割り当てる
  
 +
; 経緯
 
# MacではCommand+Spaceを日本語入力にしている。
 
# MacではCommand+Spaceを日本語入力にしている。
 
# UbuntuでSpecial+Spaceを日本語入力に割り当てる方法がわからない。
 
# UbuntuでSpecial+Spaceを日本語入力に割り当てる方法がわからない。
6行目: 7行目:
 
# MacもShift+Spaceにしてこちらに慣れようと思う。
 
# MacもShift+Spaceにしてこちらに慣れようと思う。
  
参考
+
; 参考
 
* https://qiita.com/YusukeIwaki/items/83d1d5a9c41f6bf682ee
 
* https://qiita.com/YusukeIwaki/items/83d1d5a9c41f6bf682ee
 
参考ソースでは左Shiftキーだけを使う設定だったので右Shiftキーも使うようにした。
 
参考ソースでは左Shiftキーだけを使う設定だったので右Shiftキーも使うようにした。
80行目: 81行目:
 
}
 
}
 
</source>
 
</source>
 +
 +
; 備考
 +
アマゾンで買った謎の中華ゲーミングキーボードは右Applicationキー(Commandキーに変更)の位置が右側すぎて使いにくい問題も解決した。
  
 
[[category:macOS]]
 
[[category:macOS]]
 
[[category:Karabiner-Elements]]
 
[[category:Karabiner-Elements]]

2024年5月23日 (木) 03:46時点における版

Karabiner-ElementsでShift+Spaceを日本語入力切替に割り当てる

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

参考ソースでは左Shiftキーだけを使う設定だったので右Shiftキーも使うようにした。

{
    "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" }]
        }
    ]
}
備考

アマゾンで買った謎の中華ゲーミングキーボードは右Applicationキー(Commandキーに変更)の位置が右側すぎて使いにくい問題も解決した。