macOS: Keyboard-Based Shutdown - via Spotlight
Jun 2, 2026 20:00 · 93 words · 1 minute read
Alfred has a built-in feature to trigger system actions like shutdown, restart or lock directly from its search bar. Spotlight didn’t have this out of the box – now, with the recently revamped Spotlight & with a small AppleScript trick, you can add it yourself.
- Open the Shortcuts app and create a new shortcut.
- Add a “Run AppleScript” action and enter the following script:
| |
- Give the shortcut a descriptive name (e.g. “Shutdown”).
- Open Spotlight (
Command + Space), type “Shutdown” – done.
via saschadiercks.de
- Balkonkraftwerk - Notizen & Learnings
- You are in control
- My Favorite Shortcuts for VS Code
- Customizing my shell: From bash to zsh to fish
- JSON5: JSON with comments (and more!)
- jq: Analyzing JSON data on the command line
- Get Total Directory Size via Command Line
- Changing DNS server for Huawei LTE router
- Notes on Job & Career Development
- Adding full-text search to a static site (= no backend needed)