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.

Working on a MacBook at Dolores Park, palm trees and the Mission Dolores spire beyond

viewMode

Outdoor and indoor display modes for macOS

GitHub

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

GitHub

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