If you with to turn Dark Mode on/off on your Mac using macOS Terminal command you can do that using dark-mode package.
- Make sure you have brew installed - if not follow the tutorial to install it - link
- Install package dark-mode using command: brew install dark-mode
% brew install dark-mode Running `brew update --preinstall`... ==> Auto-updated Homebrew! Updated Homebrew from 51da118a9 to 374adf7f1. Updated 2 taps (homebrew/core and homebrew/cask). Pouring dark-mode--3.0.2.arm64_monterey.bottle.tar.gz 🍺 /opt/homebrew/Cellar/dark-mode/3.0.2: 5 files, 93KB ==> `brew cleanup` has not been run in the last 30 days, running now...
- To turn on Dark Mode type: dark-mode on in Terminal
- To turn off Dark Mode type: dark-mode off in Terminal
Note: When the first time you run the command using the dark-mode package you will be asked to provide access to System Events.
“Terminal“ wants access to control “System Events“.
Allowing control will provide access to documents and data in “System Events“,
and to perform actions within that app.
Source: https://github.com/sindresorhus/dark-mode
% dark-mode --help
Usage
$ dark-mode [command]
Commands
<none> Toggle dark mode
on Enable dark mode
off Disable dark mode
status Dark mode status
Created by Sindre Sorhus
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to macOS,
- How to list all users in Mac Terminal
- Docker Desktop needs privileged access macOS
- Mac: How to show count of files and folders in Finder
- How to Change Background Color TextEdit on Mac
- How to adjust MacBook Desktop icons size
- Test internet speed using macOS Terminal command
- How to change the default font and text size in Microsoft Excel for Mac
- How to install Java on macOS [Big Sur]
- How to come out of dquote prompt in Terminal - macOS/Linux
- How to Increase MacBook Trackpad Cursor Speed on macOS Ventura/Sonoma
- Fix: Microsoft Excel Quit Unexpectedly on Mac
- How to Adjust macOS System Font Size
- How to Quit Applications on Mac Using Terminal
- How to check zsh installed version using terminal
- Two Ways to Extract rar (*.rar) files on Mac
- How to Right Click on Mac Desktop?
- How to Add Brew to PATH M1/M2 Mac
- How to search (find) in macOS Terminal Console Text
- macOS 13 Ventura - The New About this Mac Window
- TextEdit Get the count of lines in a file
- How to run .sh file in Mac Terminal
- Google Search Hot Trends Screensaver for Mac OS X
- Check Reboot History Mac
- [Solution] Mac Update Stuck Preparing macOS Ventura 13.0 About 30 minutes remaining
- Display Safari URL address link on hover
More Posts:
- Read and Parse XML file using Java DOM Parser [Java Tutorial] - Java
- Deep Dive: Java Object Class from java.lang Package - Java
- How to deactivate a Python Virtual Environment -virtualenv - Python
- Find Sum of two numbers - C-Program
- List all installed packages (Formulae) in Homebrew on Mac - MacOS
- 21 Essential Mac Terminal Shortcuts for Devs and DevOps to Boost Productivity - MacOS
- Replace new line with comma in Sublime Text Editor - Sublime-Text
- 5 Ways to Loop a Dictionary in Python - Python