brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: give a Mac shortcut its own key combination in the Shortcuts app

Shortcuts
~/tips/tip-macos-shortcuts-keyboard-shortcut

Shortcuts app > double-click the shortcut > Details (info button) > Add Keyboard Shortcut

Runs any shortcut with a key combination you choose, in every app on your Mac.

A lot of my shortcuts on the MacBook would get used far more if I didn’t have to go and find them first. The Shortcuts app has a fix for that, and it’s easy to miss: any shortcut can get its own key combination, and it works in every app.

Open the shortcut and add the keys in its details:

Shortcuts app > double-click the shortcut > Details (info button) > Add Keyboard Shortcut

Click Add Keyboard Shortcut, press the combination you want, and you’re done. From then on, pressing those keys in any app runs the shortcut. Changed your mind? Click the “Run with” field and press Delete to remove it.

Say you built a shortcut that gets your desk ready for work: it opens your mail and your notes and turns on a Focus. Give it Control-Option-Command-W and it’s one chord away, whatever window is in front. I’d go for combinations with several modifier keys like that one. The short ones are mostly taken already.

The catch: Apple says some keyboard shortcuts are reserved for the system and can’t be overridden. If a combination doesn’t seem to do anything, macOS is probably keeping it for itself, so pick another one. And because Apple counts the keyboard shortcut among the ways to run a shortcut on content in the app you’re using, a shortcut that works on selected text can take it from there too.

Further reading: Apple: Run a shortcut from another app on Mac

More Shortcuts tips chrome://extensions/shortcuts right click an entry > Show Same Keybindings change the name and icon if you like > Add System Settings > Keyboard > Keyboard Shortcuts > Services Shortcuts app > click a shortcut > Edit > Automation > choose a trigger All Shortcuts tips (8) All topics

Link