🔹 1. macOS Shortcuts for Quick Automation (Best for GUI-Based Tasks)
🎯 A. Auto-Enable Focus Mode When Opening Specific Apps
🔹 Example: Turn on “Gaming Focus” when Steam is launched.
1️⃣ Open Shortcuts → Click New Shortcut
2️⃣ Add “Open App” → Select Steam
3️⃣ Add “Set Focus Mode” → Choose Gaming
✅ Now, every time Steam opens, your Focus Mode will automatically activate.
🔥 B. Auto-Toggle Dark Mode Based on Time
🔹 Switches to dark mode after 6 PM and back to light mode at 6 AM.
1️⃣ Create a New Shortcut
2️⃣ Add “If Time of Day is 6:00 PM” → Set Dark Mode: On
3️⃣ Add “If Time of Day is 6:00 AM” → Set Dark Mode: Off
📌 How to Automate:
- Go to Shortcuts Settings → Automations → Set it to run daily.
🤖 2. Automator for Advanced Workflows (Best for File & System Automations)
📂 A. Auto-Organize Downloads Folder
🔹 Moves screenshots to “Screenshots” folder, PDFs to “Documents,” etc.
1️⃣ Open Automator → Choose Folder Action
2️⃣ Set the Target Folder to Downloads
3️⃣ Add “Filter Finder Items”
- Condition: Kind is Image
4️⃣ Add “Move Finder Items” - Destination: Screenshots Folder
5️⃣ Repeat for PDFs, ZIPs, etc.
✅ Now, every time you download files, they will be automatically sorted.
🖥 B. Auto-Switch Display Resolutions for Gaming vs. Work
🔹 Changes resolution to 1080p when Steam opens, 4K when it closes.
1️⃣ Open Automator → Create Application
2️⃣ Add “Run Shell Script”
3️⃣ Paste this script:
bashif pgrep -x "Steam" > /dev/null; then
cscreen -x 1920 -y 1080
else
cscreen -x 3840 -y 2160
fi
4️⃣ Save and set it to run automatically when Steam opens.
✅ Now, your Mac will switch resolutions based on activity.
🛠 3. Hammerspoon for Ultimate macOS Automation
🔹 (Best for Keyboard Shortcuts, Window Management, and Custom Workflows)
🎭 A. Create a Hyper Key (Caps Lock → Cmd+Ctrl+Option+Shift)
🔹 Turns Caps Lock into a super modifier key for custom shortcuts.
1️⃣ Install Hammerspoon
cssbrew install --cask hammerspoon
2️⃣ Open ~/.hammerspoon/init.lua
and add:
luaCopyEdiths.hotkey.bind({"cmd", "ctrl", "alt", "shift"}, "T", function()
hs.alert.show("Hyper Key Activated!")
end)
3️⃣ Reload Hammerspoon → Now, Caps Lock + T triggers an alert.
✅ Customize it to launch apps, resize windows, or trigger workflows.
📌 B. Auto-Tile Windows for Productivity
🔹 Arrange windows automatically when you open apps like VS Code & Safari.
luahs.window.animationDuration = 0
local laptopScreen = hs.screen.primaryScreen()
function arrangeWindows()
local apps = {
{ "Safari", hs.geometry.unitrect(0, 0, 0.5, 1) }, -- Left half
{ "Visual Studio Code", hs.geometry.unitrect(0.5, 0, 0.5, 1) } -- Right half
}
for _, app in ipairs(apps) do
local appWindow = hs.application.get(app[1]):mainWindow()
if appWindow then
appWindow:move(app[2], laptopScreen)
end
end
end
hs.hotkey.bind({"cmd", "ctrl", "alt"}, "A", arrangeWindows)
✅ Now, press Cmd + Ctrl + Alt + A to instantly tile windows.
Want specific automations? I can customize:
✅ Gaming setups (eGPU switching, auto resolution tweaks)
✅ Pro workflows (window tiling, keyboard macros)
✅ Smart home control (Shortcuts + HomeKit)