我正在使用“系统偏好设置”自定义键盘快捷键。我找不到将静音分配给 F10、将音量降低分配给 F11 以及将音量增加分配给 F12 的方法。当我使用 fn+F10 等时,它们可以工作,但我不想先按 fn,我想继续使用功能“F”键作为标准功能键。
我看到了一些关于如何使用第三方应用程序、脚本等的建议。我尝试了一些,但无法让它们工作;当然,我是 Mac 新手,可能做错了什么。但如果可能的话,我更愿意使用 Mac 的系统设置。
答案1
创建一个运行如下脚本的 Automator 服务:
if output muted of (get volume settings) then
set volume without output muted
else
set volume with output muted
end if
但它没有显示任何反馈。在运行 Automator 服务之前会有短暂的延迟。10.7 和 10.8 上还有一个错误,Automator 服务的快捷方式并不总是有效,直到从菜单栏显示服务菜单。
如果其他人不介意使用其他应用程序,请尝试函数翻转:
您可以通过添加如下条目来更改单个键私有文件:
<autogen>--KeyToKey-- KeyCode::F1, KeyCode::BRIGHTNESS_DOWN</autogen>
<autogen>--KeyToKey-- KeyCode::F2, KeyCode::BRIGHTNESS_UP</autogen>
<autogen>--KeyToKey-- KeyCode::F3, KeyCode::MISSION_CONTROL</autogen>
<autogen>--KeyToKey-- KeyCode::F4, KeyCode::LAUNCHPAD</autogen>
<autogen>--KeyToConsumer-- KeyCode::F5, ConsumerKeyCode::KEYBOARDLIGHT_LOW</autogen>
<autogen>--KeyToConsumer-- KeyCode::F6, ConsumerKeyCode::KEYBOARDLIGHT_HIGH</autogen>
<autogen>--KeyToConsumer-- KeyCode::F7, ConsumerKeyCode::MUSIC_PREV</autogen>
<autogen>--KeyToConsumer-- KeyCode::F8, ConsumerKeyCode::MUSIC_PLAY</autogen>
<autogen>--KeyToConsumer-- KeyCode::F9, ConsumerKeyCode::MUSIC_NEXT</autogen>
<autogen>--KeyToConsumer-- KeyCode::F10, ConsumerKeyCode::VOLUME_MUTE</autogen>
<autogen>--KeyToConsumer-- KeyCode::F11, ConsumerKeyCode::VOLUME_DOWN</autogen>
<autogen>--KeyToConsumer-- KeyCode::F12, ConsumerKeyCode::VOLUME_UP</autogen>
<autogen>--KeyToKey-- KeyCode::BRIGHTNESS_DOWN, ModifierFlag::FN, KeyCode::F1</autogen>
<autogen>--KeyToKey-- KeyCode::BRIGHTNESS_UP, ModifierFlag::FN, KeyCode::F2</autogen>
<autogen>--KeyToKey-- KeyCode::EXPOSE_ALL, ModifierFlag::FN, KeyCode::F3</autogen>
<autogen>--KeyToKey-- KeyCode::LAUNCHPAD, ModifierFlag::FN, KeyCode::F4</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_KEYBOARDLIGHT_LOW, ModifierFlag::FN, KeyCode::F5</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_KEYBOARDLIGHT_HIGH, ModifierFlag::FN, KeyCode::F6</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_MUSIC_PREV, ModifierFlag::FN, KeyCode::F7</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_MUSIC_PLAY, ModifierFlag::FN, KeyCode::F8</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_MUSIC_NEXT, ModifierFlag::FN, KeyCode::F9</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_VOLUME_MUTE, ModifierFlag::FN, KeyCode::F10</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_VOLUME_DOWN, ModifierFlag::FN, KeyCode::F11</autogen>
<autogen>--KeyToKey-- KeyCode::VK_CONSUMERKEY_VOLUME_UP, ModifierFlag::FN, KeyCode::F12</autogen>