A command-line tool to toggle, enable, disable, and check the status of macOS dark mode.
dark-mode is a command-line tool that allows users to control the macOS dark mode setting directly from the terminal. It provides commands to toggle, enable, disable, and check the status of the system's dark mode, solving the problem of manually changing appearance settings through System Preferences. This enables automation and scripting for developers and power users who want to manage their macOS theme programmatically.
macOS developers, power users, and automation enthusiasts who need to programmatically control or query the system's dark mode setting from scripts, workflows, or command-line environments.
Developers choose dark-mode for its simplicity, reliability, and ease of integration into automation scripts. It fills a niche gap by providing a dedicated, lightweight CLI tool for macOS dark mode control, avoiding the need for complex AppleScript or GUI automation.
Control the macOS dark mode from the command-line
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
As a compiled binary, it executes instantly without scripting language overhead, making it ideal for quick terminal commands and automation scripts.
The help documentation shows clear commands like 'dark-mode on' and 'dark-mode status', requiring no complex arguments or configurations for basic operations.
It offers multiple installation methods via Homebrew, npm, or manual download, providing flexibility for different macOS setups as highlighted in the README.
Designed specifically for scripting, it reliably toggles dark mode, enabling seamless integration into workflows like Alfred or cron jobs without GUI dependencies.
The tool only works on macOS, as stated in the README, rendering it useless for developers on other operating systems and limiting cross-platform utility.
For macOS 10.13 or earlier, users must download additional Swift support libraries, adding setup complexity and potential compatibility issues.
It lacks built-in capabilities like scheduling or conditional toggling based on system events, requiring users to rely on external tools for more complex automation.