r/coolgithubprojects • u/mopfaff • 5d ago
I made Safelight: a free, open-source Mac menu bar app that fades your screen to deep red at night
galleryI wanted my Mac's screen to go properly red at night, like the safelight in a darkroom, without having to remember to switch it on.
Night Shift only gets so warm. macOS does have a filter that turns the whole screen red (System Settings › Accessibility › Display › Color Filters › Color Tint), but it's buried there, and every change means going back in: switching it on or off, or setting how strong it is.
Safelight puts that filter, brightness and Light/Dark on one schedule and fades between them: normal through the day, warmer and dimmer after sunset, deep red late at night, and back again in the morning. It can follow sunrise and sunset instead of fixed times.
What else it does:
- Brightness for every display. On Apple silicon, external monitors that take DDC/CI get their real backlight set, and can go darker than the backlight's lowest setting. Monitors that can't be controlled that way get a darkened picture instead.
- Brightness keys that follow the pointer. Each display can have its own brightness, and the keys set whichever one the pointer is on, external monitors included.
- A wallpaper each for Light and Dark. Pick one for each, and the desktop changes with the appearance.
- In your Mac's language. Every label comes from macOS's own translations.
The catches:
- It isn't notarized, so the first launch needs Open Anyway in Privacy & Security.
- It uses the private macOS functions System Settings calls, so it can't be on the App Store and a macOS update could break it.
- Quitting turns the filter off and puts brightness back to full, so you can't get stuck with a red screen.
- The brightness keys need Accessibility permission, which macOS asks for when you turn on Adjust Independently. Nothing else needs it.
- It needs macOS 15.5 or later, on Apple silicon or Intel.
It's written in Swift and SwiftUI, GPL-3.0, with no account and no tracking. I built it with Claude Code, and nearly every commit says so.