Skip to content

aos appearance

Dark mode and night light (Night Shift)

2 commands. Run aos appearance --help for the same list from the binary, or see every group.

Dark mode and the warm night colours (Night Shift on macOS, Night light on Windows and GNOME). Both take on, off or toggle, and print on or off when given nothing. dark uses System Events on macOS, the Personalize registry values plus a theme-change broadcast on Windows, and the GNOME color-scheme setting on Linux. nightlight uses CoreBrightness on macOS and the GNOME setting on Linux, and exits 2 on Windows, which has no supported API for it. These follow the host: they change the screen the person is looking at.

Print or set dark mode: on, off or toggle

needs a display

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos appearance dark [on|off|toggle]
Terminal window
aos appearance dark # on | off
aos appearance dark on
aos appearance dark toggle

Print or set the warm night colours (Night Shift, Night Light)

needs a display

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos appearance nightlight [on|off|toggle]
Terminal window
aos appearance nightlight # on | off
aos appearance nightlight on