* 下载 KeyRemap4Macbook

* 安装并重启

* 在菜单栏右边找到图标 右击-> Preferences

* 切换到 Misc & Uninstall 标签

* 点击 Open private.xml 按钮,并在 root 节点内粘贴如下代码

<item>
<name>Volume Keys</name>
<appendix>Up, Down, Mute</appendix>
<identifier>remap.volumeKeys</identifier>
<autogen>--KeyToConsumer-- KeyCode::PC_PRINTSCREEN, ConsumerKeyCode::VOLUME_DOWN</autogen>
<autogen>--KeyToConsumer-- KeyCode::PC_PAUSE, ConsumerKeyCode::VOLUME_UP</autogen>
<autogen>--KeyToConsumer-- KeyCode::PC_SCROLLLOCK, ConsumerKeyCode::VOLUME_MUTE</autogen>
</item>

 

* 保存,然后回到 Preferences 界面,切换到 Change Key 标签,点击 ReloadXML 按钮

* 勾选出现的 Volume Keys 项

* 关闭窗口,搞定

我用的是 printscreen 减小音量 /scroll静音/pause增大音量

keycode 可以参考https://github.com/tekezo/Karabiner/blob/version_10.15.0/src/bridge/generator/keycode/data/KeyCode.data

软件下载地址https://github.com/tekezo/Karabiner

用外接pc键盘链接mac,修改快捷键-刘冰洋个人博客

用外接pc键盘链接mac,修改快捷键-刘冰洋个人博客