Command-Line Tools
Small command-line tools for macOS that I use day to day. Source and install steps are on GitHub under mpdaugherty/mac-tools.

viewMode
Outdoor and indoor display modes for macOS
Do you like to work outside but hate the eyestrain? I figured out that I could use accessibility settings to reduce transparency, increase contrast, change display zoom and more to make my mac readable in the sun. viewMode makes this easy. It switches between outdoor and indoor settings, so I can toggle it when Iām in Dolores Park and get back to normal in the office with a single command instead of a lot of menu navigation.
viewMode outdoor
viewMode indoor
noSleep
Keep your Mac working while the lid is closed
I use noSleep to carry a live Claude Code or agent session from my desk to a coffee shop without it stopping mid-run. Always be vibing!
Without noSleep, when you close the lid, macOS suspends everything. noSleep keeps the Mac awake with the lid shut for a set number of minutes, then lets it sleep again. In conjunction with a hotspot on your phone, this makes agents on the go easy.
noSleep --min 30
m [at] mpdaugherty.com