karabiner の設定のメモ。
目的
本来 control + shift + eject
でディスプレイスリープさせるところを、
eject
key 単体でそうするようにキーマップをせっていする。
eject key は使うことないので。
環境
方法
Karabiner-Elements というアプリを使用します。インストールしましょう。
設定ファイル ~/.config/karabiner/karabiner.json
をエディタで開きます。
json コードの「profiles -> complex_modifications -> rules
」の [ ]
の中に以下のコードを挿入します;
{ "description": "eject to display sleep", "manipulators": [ { "from": { "consumer_key_code": "eject", "modifiers": { "optional": [ "any" ] } }, "to": [ { "consumer_key_code": "eject", "modifiers": [ "left_control", "left_shift" ] } ], "type": "basic" } ] }
rule
の中にすでに何か書いてある場合は、カンマ ,
で区切ります。
以上です。
参考
公式のドキュメントがあります;