もう最新のMacでは使えなくなってしまった Karabiner ですが、 Karabinerを使いたいがためにまだOSをアップデートしていません。
そんな私がさいつよのKarabinerの設定を晒します。
private.xmlでない設定
- [ex] Control+W to Option+Delete
- エディター、Chromeなど含めてどこでも terminal のように word 削除がしたい!
- Mouse Keys Mode V2
- マウスはキーボードで動かすものです。色々ショートカットが効かないアプリでも、手を動かさずにクリック
- でも頻繁にマウス使うときはマウスを使う。さいつよは、状況によってツールを使い分ける
- 左右のコマンドキーを「英数/かな」としても使う
- もちろん必要
private.xml
- Vim同じ Control-H,J,K,L でカーソル移動
- もうカーソルキーなんていらない
- Contrl-G,;で、word移動
- word移動も、当然必要。 Vimのキーの横において感覚的にわかりやすく
- Option-C で ターミナルKill
- これは単純に Control-Z,X,C,V,S を Commandと同様にしているから
private.xml
<?xml version="1.0"?>
<root>
<item>
<name>Ctrl-H to LEFT</name>
<identifier>private.ctrl-h_to_left</identifier>
<autogen>
__KeyToKey__
KeyCode::H, VK_CONTROL,
KeyCode::CURSOR_LEFT
</autogen>
</item>
<item>
<name>Ctrl-J to DOWN</name>
<identifier>private.ctrl-j_to_down</identifier>
<autogen>
__KeyToKey__
KeyCode::J, VK_CONTROL,
KeyCode::CURSOR_DOWN
</autogen>
</item>
<item>
<name>Ctrl-K to UP</name>
<identifier>private.ctrl-k_to_up</identifier>
<autogen>
__KeyToKey__
KeyCode::K, VK_CONTROL,
KeyCode::CURSOR_UP
</autogen>
</item>
<item>
<name>Ctrl-L to RIGHT</name>
<identifier>private.ctrl-l_to_right</identifier>
<autogen>
__KeyToKey__
KeyCode::L, VK_CONTROL,
KeyCode::CURSOR_RIGHT
</autogen>
</item>
<item>
<name>Option-C to Control-C</name>
<identifier>private.option-c_to_control-c</identifier>
<autogen>
__KeyToKey__
KeyCode::C, VK_OPTION,
KeyCode::C, VK_CONTROL
</autogen>
</item>
<item>
<name>Control-; to Control+Option+RIGHT</name>
<identifier>private.control-semicolon_to_option-right</identifier>
<autogen>
__KeyToKey__
KeyCode::SEMICOLON, VK_CONTROL,
KeyCode::CURSOR_RIGHT, VK_OPTION
</autogen>
</item>
<item>
<name>Control-G to Control+Option+LEFT</name>
<identifier>private.control-g_to_option-left</identifier>
<autogen>
__KeyToKey__
KeyCode::G, VK_CONTROL,
KeyCode::CURSOR_LEFT, VK_OPTION
</autogen>
</item>
</root>