Skip to content

Hotkey Chains

You'll build five macros that each drive three apps from one key, then keep only the ones you actually used.

About

Shortcuts are one key for one action. Macros are one key for ten actions across three apps: open the project, arrange the windows, start the timer and open the notes. Hammerspoon on Mac and AutoHotkey on Windows are free, Keyboard Maestro is the paid Mac option, and Linux is a mix. The trap is macros that break when a window takes longer to open than it did yesterday, so wait for the window rather than sleeping for a fixed time.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
Two weeks
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Automation & Scripts to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Install a macro tool and bind one key that opens three apps and arranges their windows. Put the editor on the left half, the terminal bottom right and the browser top right. This is the morning setup you do by hand every day, so it's the first one worth having. Film the key press and the layout appearing. Video
  2. 2
    Make a macro that reads the selection or clipboard and does something with it. Select a URL, press a key, and it opens in a private window. Or select some text, press a key, and it's searched in your notes app. Film it working. Video
  3. 3
    Make one that waits for a condition instead of a fixed delay. Wait until the window title contains the project name, then type. Fixed sleeps always fail on the slow day. Take a screenshot of the wait step in the macro. Photo
  4. 4
    Make one key do different things in different apps. Bind one key that means send in mail, run in the editor and play in the music app. Film the one key doing all three things. Video
  5. 5
    Chain a macro into a script, so the key runs a shell script and shows the result. The key runs your rename script on the current folder and pops a notification with the count. Film the key press and the notification. Video
  6. 6
    After two weeks, show the usage counts and delete the ones you didn't use. Most macro tools count runs. Keep whatever fired more than ten times and drop the rest. Take a screenshot of the counts and the pruned list. Photo