Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafredri/macos-darkmode
Simple CLI for controlling macOS Dark Mode via Apples private API
https://github.com/mafredri/macos-darkmode
cli dark-mode darkmode macos
Last synced: 3 months ago
JSON representation
Simple CLI for controlling macOS Dark Mode via Apples private API
- Host: GitHub
- URL: https://github.com/mafredri/macos-darkmode
- Owner: mafredri
- License: mit
- Created: 2019-04-12T16:15:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-13T11:33:33.000Z (almost 6 years ago)
- Last Synced: 2024-10-12T22:42:07.677Z (4 months ago)
- Topics: cli, dark-mode, darkmode, macos
- Language: Go
- Size: 2.93 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# macos-darkmode
Your friendly neighbordhood macOS Dark Mode CLI. Dark Mode is set via Apples private APIs instead of the usual Apple Script.
Tested on macOS Mojave (10.14).
## Installing
```console
$ go get -u github.com/mafredri/macos-darkmode/cmd/darkmode
```## Usage
### Get current Dark Mode
```console
$ darkmode
on
```### Set Dark Mode
```console
$ darkmode on
$ darkmode off
$ darkmode toggle
```## Why?
Sometimes setting Dark Mode via Apple Script just doesn't work, I wanted a more reliable method.
## See also
- [macos-brightness](https://github.com/mafredri/macos-brightness): Simple CLI for changing brightness on macOS
## Thanks
Thanks to Saagar Jha for discovering the private APIs and sharing them in his post on [Scheduling Dark Mode](https://saagarjha.com/blog/2018/12/01/scheduling-dark-mode/).