Essay · No. 010··7 min read
Development setup · macOS
Making macOS Feel More Fluid
Contents
- 1. Start with the notch Island
- 2. Add agent, download, and battery feedback
- 3. Reveal the desktop after unlock
- 4. Shorten the Dock slide and preview windows
- 5. Open Ghostty from the side
- 6. Smooth mouse scrolling and the editor caret
- 7. Keep a scratchpad at the left edge
- 8. Show progress for package checks
A copy confirmation springs out of the notch. The terminal slides in from the right when I need it. When a coding agent needs an answer, its mark pulses amber. Each bit of motion gives me a cue without pulling me away from what I’m doing.
The previews recreate the motion in the browser with sample content. Each plays on demand. Start with a small Hammerspoon configuration, then add the effects you want.
A copy confirmation springs out of the notch and folds back.
The agent mark pulses amber and the elapsed time rolls to its next value.
The download size rolls forward while the file arrives.
The green ring fills to the MacBook’s battery level.
The desktop fades in and the Island opens with a greeting.
The hidden Dock starts its slide as soon as the pointer reaches the edge.
Hovering over an app in the Dock reveals its open windows.
The terminal slides in from the right. The cursor leaves a trail when it jumps.
The editor scrolls smoothly and the caret glides between positions.
The same wheel turn glides longer in Brave and settles sooner in VS Code.
The scratchpad slides in from the left and slides away with Escape.
The blue bar advances as lint, type checking, and tests pass.
1. Start with the notch Island
I call the black pill at the top of the screen the Island. It starts at the notch, expands with a slight overshoot, and folds back after the message. When a timer or a download size changes, the new digits roll into place. On a display without a notch, the Island sits at the top centre.
- Install Hammerspoon and open it. Grant Accessibility in System Settings → Privacy & Security when prompted.
- Download the Mac motion kit and unzip it. Copy its
mac-motionfolder into your Hammerspoon configuration folder. The commands below assume you unzipped it in Downloads. - Add the Lua lines below to your existing
init.lua, or create the file if you are starting fresh. Select Reload Config from the Hammerspoon menu and copy some text.
mkdir -p ~/.hammerspoon
cp -Rn ~/Downloads/mac-motion-kit/mac-motion ~/.hammerspoon/
require("mac-motion.island")
require("mac-motion.copy-tick")
Keep an existing init.lua and add these lines to it. Remove the lines and reload to turn the effects off. My local setup keeps the Island motion enabled. The Island in the download follows macOS Reduce Motion by default. You can opt into my setting by changing FOLLOW_REDUCE_MOTION to false in mac-motion/lib.lua.
2. Add agent, download, and battery feedback
The agent marks breathe while work is active. Amber means T3 Code is waiting for me. A live download shows received bytes beside the notch. The charging card fills a ring to the current battery level.
- Add
require("mac-motion.agent-count"). Reload and start a Claude Code or Codex turn. The module looks for matching local processes. - For the amber state, also add
require("mac-motion.agent-waiting"). This part expects the local T3 Code state database. Trigger an approval or question in T3 Code to try it. - Add
require("mac-motion.downloads-island"). Allow Hammerspoon access to Downloads if macOS asks. Download a file into that folder to see the live count and completion card. - On a MacBook, add
require("mac-motion.charge-island"). Reload, then unplug and reconnect power to test the ring.
3. Reveal the desktop after unlock
I added a black cover that fades away after unlock. The Island greets me as the desktop comes back. The cover sits behind the normal lock screen.
- Add
require("mac-motion.soft-wake")toinit.luaand reload. - Lock and unlock the Mac to see the fade and greeting. The optional morning review count uses the GitHub CLI. The greeting can appear without it.
4. Shorten the Dock slide and preview windows
My Dock starts sliding in as soon as I reach the edge. I use macOS preferences to remove the wait and shorten the slide.
- Turn on Automatically hide and show the Dock in System Settings → Desktop & Dock.
- Read the current values with the first commands below. Save any values you want to restore. A missing key means macOS uses its default.
- Write the new values, restart the Dock, and move the pointer to its edge.
defaults read com.apple.dock autohide-delay
defaults read com.apple.dock autohide-time-modifier
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.3
killall Dock
To undo the change, restore your saved values. For keys that were absent, use defaults delete com.apple.dock followed by the key name. Restart the Dock again. Dock preference reference
I added DockDoor for the times I want a specific browser or editor window. The Dock icon becomes the place to look for that window.
- Install the free DockDoor app. If you use Homebrew, run
brew install --cask dockdoor. - Open DockDoor. Grant Accessibility and Screen & System Audio Recording in System Settings → Privacy & Security, then reopen it if prompted.
- Enable Dock Previews. Hover over an app with open windows, then click the thumbnail you want. Leave DockDoor's Window Switcher and Cmd+Tab enhancements off to keep the standard app switcher.
5. Open Ghostty from the side
The quick terminal used to come down from the top. I moved it to the right edge so I can run a command and keep the left side of my editor or browser in view. A small shader draws a trail when the cursor moves.
- Install Ghostty and open its configuration. Add the quick terminal settings below. The global shortcut needs Ghostty's Accessibility permission. To keep the shortcut inside Ghostty, omit
global:. - For the trail, copy the shader from the unzipped kit using the shell commands below. Add the
custom-shaderline only if you want the trail. - Reload with Command+Shift+Comma. Press Control+backtick to open the terminal and jump the cursor by a word to see the trail. Remove the shader setting and reload to turn the trail off.
keybind = global:ctrl+grave_accent=toggle_quick_terminal
quick-terminal-position = right
quick-terminal-size = 45%
quick-terminal-animation-duration = 0.18
custom-shader = ~/.config/ghostty/shaders/cursor-trail.glsl
mkdir -p ~/.config/ghostty/shaders
cp -n ~/Downloads/mac-motion-kit/ghostty/cursor-trail.glsl \
~/.config/ghostty/shaders/
To return to the drop-down layout, set quick-terminal-position = top and reload. With the drawer on the right, the percentage in quick-terminal-size sets its width. Ghostty quick terminal options
6. Smooth mouse scrolling and the editor caret
Mos smooths the steps from my mouse wheel. I kept natural scrolling on the trackpad. In VS Code, I enabled smooth scrolling in the editor, lists, and terminal. The caret also glides between positions.
- Install Mos and open it. Grant Accessibility if prompted. Enable Smooth scrolling and try a page with your mouse wheel. Reverse the mouse direction in Mos if you prefer it. Launch at login is optional.
- Open Mos → Settings → Exceptions. Add Brave and VS Code. Edit each app and turn off inheritance so you can set its Duration separately. Keep smooth scrolling enabled for both.
- Give Brave a longer Duration than your global setting for reading. Give VS Code a shorter Duration so a small wheel turn settles sooner. Try the same wheel turn in both apps. Remove the entries if you want them to inherit the global settings again. Mos app profiles
- In VS Code, run Preferences: Open User Settings (JSON) from the Command Palette. Merge the keys below into your existing settings. Test by scrolling and moving the caret with the arrow keys.
{
"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"workbench.list.smoothScrolling": true,
"terminal.integrated.smoothScrolling": true
}
7. Keep a scratchpad at the left edge
When a thought interrupts me, I want a place to put it without finding a file first. The scratchpad slides in from the left, keeps one note on the Mac, and slides away when I press Escape.
- Copy the updated Mac motion kit as shown in the Island setup. Make sure its
mac-motionfolder containsscratchpad.luaandscratchpad.html. - Add the line below to Hammerspoon's
init.luaand reload. Press Control+Option+Shift+N and type a note. Close it with Escape, then open it again to check that the note is still there.
require("mac-motion.scratchpad")
Remove the line and reload Hammerspoon to turn off the shortcut.
8. Show progress for package checks
I use dev-check to run lint, type checking, and tests from a package directory. A blue bar in Ghostty advances after each stage passes. If a stage fails, the command stops there and clears the bar.
- Copy
dev-check.zshfrom the kit with the commands below. Add thesourceline to your existing~/.zshrcand open a new Ghostty shell. - From a directory with a
package.jsonand the matching scripts, rundev-checkwith pnpm or specify the package manager, such asdev-check npm. - Set
DEV_CHECK_TYPE_SCRIPT=type-checkbefore the command if your package uses that script name. If you run inside tmux, addset -g allow-passthrough onto its configuration and reload it so Ghostty receives the progress updates.
mkdir -p ~/.config/mac-motion
cp -n ~/Downloads/mac-motion-kit/shell/dev-check.zsh ~/.config/mac-motion/
# Add this line to ~/.zshrc
source ~/.config/mac-motion/dev-check.zsh
The Dock and terminal were good places to start because I use them all day. The scratchpad now has a place of its own, and the notch still handles the cues I want to notice from any app.