Essay · No. 010··7 min read

Development setup · macOS

Making macOS Feel More Fluid

Contents
  1. 1. Start with the notch Island
  2. 2. Add agent, download, and battery feedback
  3. 3. Reveal the desktop after unlock
  4. 4. Shorten the Dock slide and preview windows
  5. 5. Open Ghostty from the side
  6. 6. Smooth mouse scrolling and the editor caret
  7. 7. Keep a scratchpad at the left edge
  8. 8. Show progress for package checks

7 min readPublished 6 Dec 2026

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.

Motion previews Browser recreations

A copy confirmation springs out of the notch and folds back.

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.

  1. Install Hammerspoon and open it. Grant Accessibility in System Settings → Privacy & Security when prompted.
  2. Download the Mac motion kit and unzip it. Copy its mac-motion folder into your Hammerspoon configuration folder. The commands below assume you unzipped it in Downloads.
  3. 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.
Figure 1
mkdir -p ~/.hammerspoon
cp -Rn ~/Downloads/mac-motion-kit/mac-motion ~/.hammerspoon/
Figure 2
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.

  1. Add require("mac-motion.agent-count"). Reload and start a Claude Code or Codex turn. The module looks for matching local processes.
  2. 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.
  3. 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.
  4. 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.

  1. Add require("mac-motion.soft-wake") to init.lua and reload.
  2. 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.

  1. Turn on Automatically hide and show the Dock in System Settings → Desktop & Dock.
  2. Read the current values with the first commands below. Save any values you want to restore. A missing key means macOS uses its default.
  3. Write the new values, restart the Dock, and move the pointer to its edge.
Figure 3
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.

  1. Install the free DockDoor app. If you use Homebrew, run brew install --cask dockdoor.
  2. Open DockDoor. Grant Accessibility and Screen & System Audio Recording in System Settings → Privacy & Security, then reopen it if prompted.
  3. 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.

  1. 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:.
  2. For the trail, copy the shader from the unzipped kit using the shell commands below. Add the custom-shader line only if you want the trail.
  3. 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.
Figure 4
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
Figure 5
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.

  1. 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.
  2. 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.
  3. 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
  4. 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.
Figure 6
{
  "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.

  1. Copy the updated Mac motion kit as shown in the Island setup. Make sure its mac-motion folder contains scratchpad.lua and scratchpad.html.
  2. Add the line below to Hammerspoon's init.lua and 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.
Figure 7
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.

  1. Copy dev-check.zsh from the kit with the commands below. Add the source line to your existing ~/.zshrc and open a new Ghostty shell.
  2. From a directory with a package.json and the matching scripts, run dev-check with pnpm or specify the package manager, such as dev-check npm.
  3. Set DEV_CHECK_TYPE_SCRIPT=type-check before the command if your package uses that script name. If you run inside tmux, add set -g allow-passthrough on to its configuration and reload it so Ghostty receives the progress updates.
Figure 8
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

Ghostty progress reporting

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.

Keep scrolling for the next pageKeep scrolling… Abdullah Sarwar Building Neighbourhood Search from Supplier Hotel Data