Karabiner-Elementsを使用します。インストール後、~/.config/karabiner/assets/complex_modificationsディレクトリに、always_small_step_vol_control.jsonなどという名前でjsonという拡張子のファイルを設置。その中身は以下。
- {
- "title": "Always small step vol control",
- "rules": [
- {
- "description": "Always enable small step change of volume",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "f11",
- "modifiers": {
- }
- },
- "to": [
- {
- "key_code": "volume_decrement",
- "modifiers": [ "shift", "option" ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f12",
- "modifiers": {
- }
- },
- "to": [
- {
- "key_code": "volume_increment",
- "modifiers": [ "shift", "option" ]
- }
- ]
- }
- ]
- }
- ]
- }
その後、Karabiner-Elementsの設定から、Complex modifications -> Add rule -> Enableとする。コードが間違っていると表示されないので、文法ミスに気をつけなければならない。
もしかすると、Karabiner-Elementsの設定にて、Virtual keyboradのCountry codeを45(jis配列キーボード)にしないといけないかもしれない。