Skip to content
mopfaffPublic

Latest commit

 

History

295 Commits

Folders and files

Repository files navigation

Safelight's icon: a 24-hour dial, white through the day and red through the nightSafelight

Schedules macOS's color filter to full red, brightness, and Light/Dark wallpapers. Built-in and external (DDC/CI) displays, dimming below minimum, and sunrise/sunset.

Download app for macOS


macOS 15.5+ · Free & open source · First-launch & Homebrew · Website

A Mac's desktop at four times of day on Safelight's default schedule, side by side: at 12:00 in Light appearance with a daytime wallpaper and no color filter, at 17:30 in Dark appearance with a night wallpaper, at 19:00 with the screen turning red, and at 21:00 fully red, menu bar and all

It lives in the menu bar.

Safelight's icon in the menu bar, beside Wi-Fi, Spotlight, Control Center and the clock, with its controls open below it: Schedule, Color filters, Intensity, Tint, Brightness, Adjust Independently, Appearance and Wallpaper

And follows your schedule.

The Schedule window: a preview of the day above four times of day, each with its own color filter, intensity, tint, brightness and appearance

With a wallpaper for Light and Dark.

The Wallpaper window: the desktop's picture for Light and its picture for Dark, a pop-up for the display, Show on all Spaces, Screen Saver… and Clock Appearance…, above System Settings' wallpapers in their sections: Dynamic Wallpapers, Your Photos with Add Photo…, and Landscape

Features

A red that goes all the way

Drives macOS's own Color Tint filter (System Settings › Accessibility › Display › Color Filters), so the whole screen goes fully red—further than Night Shift can.

Brightness for every display
  • Hardware backlight: Sets the backlight directly on displays the Mac controls and—on Apple silicon—external monitors with DDC/CI (like MonitorControl and Lunar). Other displays dim the picture; a Sidecar iPad gets a dark layer.
  • Darker than minimum: Below the dot a quarter of the way along, the backlight stays at its lowest while the picture dims further.
  • Adjust Independently: Gives each display its own slider (in the schedule too), and DDC sliders follow the monitor's own buttons.
Brightness keys for every display

With Adjust Independently on, the brightness keys control whichever display the pointer is on. Needs Accessibility permission, requested when you turn it on.

Light and Dark, with a wallpaper for each
  • Sources: Pick from macOS's wallpapers, Photos, files, or a shuffle, with System Settings' options. Aerials stay still, as only System Settings can set moving ones.
  • Native switching: Each scheduled time can switch Light and Dark appearance. Safelight combines your two picks into one Light/Dark wallpaper, so macOS fades between them itself on any change—Safelight, System Settings, Control Center, or Auto.
  • Spaces & displays: Applies across all Spaces and displays, or turn off Show on all Spaces to set the current Space (with a separate pair per display).
One schedule for all of it
  • Times & fades: Add as many times of day as you like, each with its own color filter, intensity, tint, brightness, and appearance. Filter and brightness fade smoothly between them, with a preview strip of the day along the top.
  • Sunrise & sunset: Set Schedule to Sunrise and Sunset to anchor times to Night Shift's sunrise and sunset for your location (at, before, or after), so they shift with the seasons.
Looks and speaks like macOS

Uses System Settings' own controls and translations, so Safelight appears in your Mac's language.

Install

Needs macOS 15.5 or later, Apple silicon or Intel.

brew install --cask mopfaff/tap/safelight

Or download the .dmg from the latest release, open it, and drag Safelight to Applications.

On first launch (Safelight isn't notarized):

  1. Open Safelight. macOS says it can't check it for malware. Click Done.
  2. In System Settings › Privacy & Security, click Open Anyway and enter your password.

Once only. To read the code first: all of it is in Safelight/Safelight.swift, and you can build it yourself.

Updates

Automatic, checked daily, installed while your Mac is locked or when Safelight quits. Signed with Safelight's own key, through Sparkle. To turn off: right-click the icon, Automatic Updates.

Build it yourself

Needs Xcode 26 or later.

git clone https://github.com/mopfaff/Safelight.git
cd Safelight
scripts/release.sh

The app lands in build/release. It updates itself like a downloaded copy; turn off Automatic Updates to keep your build. Or open Safelight.xcodeproj in Xcode and run it with your own team, or Sign to Run Locally.

How it works

No overlay: Safelight changes the same settings System Settings does, through the same private functions. So it isn't on the Mac App Store, and a macOS update could break it. If one does, open an issue.

Support

Free and open source. If it's useful to you: GitHub Sponsors.

License

GPL-3.0. © 2025–2026 mopfaff.

Releases

Contributors

Languages