Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/dark-mode
Control the macOS dark mode from the command-line
https://github.com/sindresorhus/dark-mode
binary cli cli-app dark-mode homebrew macos swift
Last synced: 3 days ago
JSON representation
Control the macOS dark mode from the command-line
- Host: GitHub
- URL: https://github.com/sindresorhus/dark-mode
- Owner: sindresorhus
- License: mit
- Created: 2014-10-17T23:42:44.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2021-10-14T17:32:31.000Z (about 3 years ago)
- Last Synced: 2025-01-01T14:02:27.348Z (10 days ago)
- Topics: binary, cli, cli-app, dark-mode, homebrew, macos, swift
- Language: Swift
- Homepage:
- Size: 415 KB
- Stars: 662
- Watchers: 14
- Forks: 28
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-nodejs-cn - dark-mode - 开关 macOS 暗黑模式 (包 / 命令行程序)
- awesome-cli-apps - dark-mode - Toggle dark mode. (Utilities / macOS)
- stars - sindresorhus/dark-mode - Control the macOS dark mode from the command-line (Swift)
- awesome-nodejs - dark-mode - Toggle the macOS Dark Mode. (Packages / Command-line apps)
- fucking-awesome-cli-apps - dark-mode - Toggle dark mode. (Utilities / macOS)
- awesome-nodejs - dark-mode - Control the macOS dark mode from the command-line - ★ 380 (Command-line apps)
- awesome-node - dark-mode - Toggle the macOS Dark Mode. (Packages / Command-line apps)
- awesome-nodejs-cn - dark-mode - 切换macOS暗模式. (目录 / 命令行应用)
- awesome-nodejs-cn - dark-mode - **star:665** 切换 macOS 黑暗模式 (包 / 命令行程序)
README
# dark-mode
> Control the macOS dark mode from the command-line
Requires macOS 10.10 or later. macOS 10.13 or earlier needs to download the [Swift runtime support libraries](https://support.apple.com/kb/DL1998).
## Install
###### [Homebrew](http://brew.sh)
```
$ brew install dark-mode
```###### [npm](https://github.com/sindresorhus/dark-mode-cli)
```
$ npm install --global dark-mode-cli
```###### Manually
[Download](https://github.com/sindresorhus/dark-mode/releases/latest) the binary and put it in `/usr/local/bin`.
## Usage
```
$ dark-mode --helpUsage
$ dark-mode [command]Commands
Toggle dark mode
on Enable dark mode
off Disable dark mode
status Dark mode status
```## Build
Run `./build`. The binary can be found at `./bin/dark-mode`.
Building in Xcode works, but it does not export a binary.
## Related
- [node-dark-mode](https://github.com/sindresorhus/node-dark-mode) - Node.js port
- [alfred-dark-mode](https://github.com/sindresorhus/alfred-dark-mode) - Alfred workflow