How to set keyboard shortcuts to open Apple Mac Control Center?

(From macz.com)

Today, the macz editor will share with you how to set keyboard shortcuts to open macOS Control Center.

The "Control Center" on the Mac allows users to quickly access macOS's main system settings, such as volume, brightness, Wi-Fi, or Do Not Disturb mode. Users can customize the "Control Center" to add other items, such as accessibility shortcut keys or fast user switching.

Put an official map to prevent someone from forgetting what the control center is

Add a keyboard shortcut to the control center

As a new feature of macOS Big Sur, the control center integrates multiple system settings into one panel. While quickly adjusting multiple settings, it gives you a fresh and concise upper right corner of the menu bar.

But unfortunately, the current official does not support any keyboard shortcuts to operate the control center, which is inevitably unfriendly to the desktop, but don’t worry, the macz editor has prepared this way for you this time to partially solve this embarrassment: AppleScript + "Automatic operation".

AppleScript + "automatic operation"

Step 1: Open the "automatic operation" that comes with the system and create a "quick operation".

Note: It must be "Quick Operation", don't make a mistake.

Step 2: Search for AppleScript on the left and drag "Run AppleScript" to the right, and type in the form:

tell application "System Events"
tell process "ControlCenter"
tell menu bar item "控制中心" of menu bar 1
click
end tell
end tell
end tell

And save it, remember to take a name that you remember, such as "Open Control Center".

⌘ Cmd + S quick save

Step 3: Open System Preferences-Keyboard, select the "Shortcut Keys" tab, and click "Services" on the left. Find the quick action you just named in "General" and click "None" on the right to record the keyboard shortcut.

So that you can control by shortcut keys

Limitations of this method

This method is not perfect. You must check all the applications you want this shortcut to take effect in the "Privacy"-"Accessibility" settings, otherwise an error will be reported:

Guess you like

Origin blog.csdn.net/goldcoin_123/article/details/112365191
Recommended