7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Karabiner-Elementsのインストール&設定&アンインストール

Last updated at Posted at 2023-01-03

概要

  • Karabiner-Elementsのインストール&設定(主にキーバインド)&アンインストールの方法について簡単にまとめてみました。
  • 動作環境
    • macOS Ventura 13.1
    • Homebrew 3.6.16
    • Karabiner-Elements 14.10.0

Karabiner-Elementsとは

macOSのキーボードをカスタマイズするためのツールで、キーバインド設定などができます。

インストール

公式サイトからダウンロードしてインストールすることも可能ですが、今回はHomebrewでインストールすることにします。

brew install --cask karabiner-elements

キーカスタマイズ

私自身がよく使う以下の3つのキーバインド設定を行います。個別のデバイスに対して設定することも可能ですが、今回は全てのデバイス(「For all devices」)に対して設定します。

  • caps lock to ctrl
  • ctrl + hjkl to Arrow Keys
  • ctrl + [ to escape

まずKarabiner-Elementsを起動します。
Screenshot 2023-01-02 at 10.45.16.png

caps lock to ctrl

caps lockキーをctrlキーに変えるための設定です。US配列のキーボードを使っていますが、JIS配列とは違ってctrlキーが左下にあるからです。

「Simple Modifications」の「Add item」をクリックします。
qSwWnGjoGpY95GO1672624584_1672624623.png
「Modifier keys」から「caps_lock」と「left_control」を選択します。
DabeBCKkZKWLopu1672624692_1672624707.png
hd3yzMJ8h4UU4Ov1672624765_1672624775.png

ctrl + hjkl to Arrow Keys & ctrl + [ to escape

ctrl + hjkl to Arrow Keysctrl + h j k lを方向キーに変えるための設定です。例えばVimのINSERTモードでカーソルを動かしたい場合、Vimのデフォルトのカーソル移動用のキー(hjkl)をそのまま使えるので、便利かなと思います。またVimだけでなく、ターミナル等の操作時にも使えます。
ctrl + [ to escapectrl + [ecsキーに変えるための設定です。主にVimを使う際の設定です。

「Complex Modifications」の「Add rule」をクリックします。
Screenshot 2023-01-02 at 10.47.52.png

「Import more rules from the Internet」をクリックするとブラウザが開きます。
Screenshot 2023-01-02 at 10.48.03.png

「vim」と検索すれば該当設定が出てくるので、そのまま「Import」をクリックします。
Screenshot 2023-01-02 at 10.50.04.png

Screenshot 2023-01-02 at 10.50.26.png

また、既存の設定をインポートするだけでなく自分で作成することも可能です。詳細は公式ドキュメントをご覧ください。

アンインストール

brewでインストールした場合は以下のコマンドでアンインストールできます。

brew uninstall karabiner-elements

公式サイトからダウンロードした場合は、インストール後アプリにロックがかかるため、通常の方法では削除できないようです。
Screenshot 2023-01-02 at 10.51.40.png
アンインストールするには、アプリ内のuninstallerを使います。
Screenshot 2023-01-02 at 10.51.12.png

7
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?