
Unless you’re prone to yelling on the Internet, you probably don’t use Caps Lock for much. That’s weird since it’s right next to a bunch of useful modifier keys. Here’s how to make Caps Lock as handy as the others.
除非您容易在互联网上大喊大叫,否则您可能不会经常使用Caps Lock。 这很奇怪,因为它就在一堆有用的修饰键旁边。 这是使Caps Lock与其他工具一样方便的方法。
您可以使用额外的修饰键做什么? (What Can You Do With an Extra Modifier Key?)
Perhaps the coolest thing to do is bind fully custom hotkeys. With the use of an app like BetterTouchTool, you can use an extra modifier key to add an empty slate of hotkeys to which you can attach actions. If you want to trigger a shell script or open a new email tab whenever you press Caps+B, you can do that.
也许最酷的事情是绑定完全自定义的热键。 通过使用诸如BetterTouchTool之类的应用程序,您可以使用额外的修饰键来添加空白的热键,您可以在其中附加操作。 如果要在每次按Caps + B时触发Shell脚本或打开新的电子邮件选项卡,则可以执行此操作。
You can do the same custom hotkeys without Caps Lock, but you’ll be stuck pressing weird combinations like Shift+Control+Command to not interfere with default shortcuts. With this method, any app that allows you to set your own hotkeys will support the new Caps Lock modifier.
您可以在不使用Caps Lock的情况下执行相同的自定义热键,但是您将不得不按Shift + Control + Command之类的奇怪组合,以免干扰默认快捷键。 使用此方法,任何允许您设置自己的热键的应用程序都将支持新的Caps Lock修改器。
You can also rebind existing shortcuts to use Caps Lock. If there’s an overly complicated shortcut that’s bugging you, you can rebind it in macOS’s keyboard settings to make it easier to press. For example, the hotkey in macOS to take a screenshot of a selection is Shift+Command+5, but you could rebind it to Caps+S.
您还可以重新绑定现有的快捷方式以使用Caps Lock。 如果有一个过于复杂的快捷方式困扰着您,则可以将其重新绑定到macOS的键盘设置中 ,以使其更易于按下。 例如,macOS中用于捕获所选内容的屏幕快照的热键是Shift + Command + 5,但是您可以将其重新绑定到Caps + S。
带Karabiner的通用盖锁 (Repurpose Caps Lock With Karabiner)
Now, there’s no way to emulate an extra modifier key properly, so for compatibility reasons, a better way to get this functionality is to remap Caps Lock to act like you’re pressing the Shift, Control, Option, and Command keys at the same time. Since this is such an absurd combination, no app is going to require you to press every one of them for a hotkey, and there should be no interference.
现在,无法正确模拟额外的修饰键,因此出于兼容性的考虑,获得此功能的更好方法是重新映射Caps Lock,使其表现得就像您同时按下Shift,Control,Option和Command键一样时间。 由于这是一种荒谬的组合,因此没有任何应用程序会要求您按每个按钮中的任何一个来进行热键操作,并且不会受到干扰。
This does mean you’ll lose out on combinations such as Caps Lock+Command, but it should work simply enough with any other alphanumeric key. You can remap Caps Lock to an extra function key, like the F13-20 keys, but it may not work as a hotkey in every app. You can also natively remap the Caps Lock key to Escape (or any other modifier key), but this doesn’t add any extra functionality; it just relocates the key.
这确实意味着您会迷失在Caps Lock + Command之类的组合上,但是它与其他任何字母数字键都足够简单地工作了。 您可以将Caps Lock重新映射到一个额外的功能键,例如F13-20键,但可能无法在每个应用程序中都用作热键。 您也可以将Caps Lock键本身重新映射为Escape(或任何其他修改键),但这并没有添加任何额外的功能。 它只是重新定位密钥。
The app we’ll use to rebind Caps Lock is Karabiner, a free keyboard remapping tool for macOS. Download and install the app, and open the preferences. Under the “Complex Modifications” tab, add a new rule with the button at the bottom.
我们将用于重新绑定Caps Lock的应用程序是Karabiner,这是用于macOS的免费键盘重新映射工具。 下载并安装该应用程序,然后打开首选项。 在“复杂修改”标签下,使用底部的按钮添加新规则。

Usually, with Karabiner, you’ll have to edit the JSON for your new rule and add it manually. But one of the examples it comes with is exactly what we’re trying to do, so you don’t have to do any additional setup. Just click “+ Enable” next to “Change caps_lock to command+control+option+shift” to add the rule to Karabiner.
通常,使用Karabiner,您必须为新规则编辑JSON并手动添加。 但是随附的示例之一正是我们要尝试执行的操作,因此您无需进行任何其他设置。 只需单击“将caps_lock更改为command + control + option + shift”旁边的“ +启用”即可将规则添加到Karabiner。
You’ll want to make sure Caps Lock is turned off before adding the rule, or you’ll be stuck YELLING FOREVER. You can always turn the rule off to toggle Caps Lock in the future, but this particular rule doesn’t have a way to use the key in any other way.
您需要确保在添加规则之前先关闭Caps Lock,否则您将被永远锁定。 您以后总是可以关闭规则以切换Caps Lock,但是该特定规则无法以其他任何方式使用该键。
If you want to fix this, you can click “import more rules from the Internet” and download the “Change caps_lock” set from the official page.
如果要解决此问题,可以单击“从Internet导入更多规则”,然后从官方页面下载设置的“ Change caps_lock”。

You’ll see a new category of rules, and there’s one that will let you use Shift+Caps Lock as a regular Caps Lock key. You can enable this one and remove the old one to replace it.
您会看到一种新的规则类别,其中有一种类别可以让您将Shift + Caps Lock用作常规的Caps Lock键。 您可以启用此功能,然后删除旧的以替换它。
真正的超级密钥 (A True Hyper Key)

The Capslock Enhancement ruleset deserves mention here. While remapping Caps Lock to every other modifier provides a clean slate for new hotkeys, this ruleset finds a use for each key. By default, it stills maps to every modifier like the previous method but has a few categories of hotkeys enabled on top of that, so you can disable individual sections you don’t like to give you some space for customization.
Capslock增强规则集在这里值得一提。 虽然将Caps Lock重新映射到其他所有修饰符可为新的热键提供一个清晰的选择,但此规则集可发现每个键的用途。 默认情况下,它仍然像以前的方法一样映射到每个修饰符,但是在它上面还启用了几类热键,因此您可以禁用您不希望为您提供一些自定义空间的单个部分。
You can import it the same way you’d import any other rule to Karabiner, or you can visit the install URL in your browser and choose to open it in Karabiner.
您可以使用将其他任何规则导入Karabiner的方式导入它,也可以在浏览器中访问安装URL并选择在Karabiner中打开它。
翻译自: https://www.howtogeek.com/409904/how-to-turn-your-mac’s-caps-lock-into-an-extra-modifier-key/