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.
% 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
Have Questions? Post them here!
More Posts related to MacOS,
- Add Bookmark macOS Safari
- Where is .zshrc file located in macOS
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Shutdown Mac Terminal Command
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- How to display directory tree in Mac Terminal
- How to set Out Of Office (OOO) on Outlook for Mac
- Zsh Shell: Custom alias that you may find useful
- How to install Node using Brew on Mac
- Display full website URL/address in Safari macOS Browser
- Install Native Java JDK JRE on Apple Silicon M1 Mac
- Enable macOS Stage Manager
- How to set an emoji as Zsh terminal prompt in macOS
- Fix Error - Another active Homebrew update process is already in progress
- 30+ Zoom video communications application shortcuts for macOS
- How to clear Mac Terminal screen
- Check macOS free disk space using Terminal command
- How to Right Click on Mac Desktop?
- How to know installed version of Homebrew
- bash: command not found error [macOS Terminal Linux, Unix or Windows]
- MacBook - Time Limit - You have reached your time limit, Ignore Limit
- How to check zsh installed version using terminal
- How to uninstall GarageBand from Mac
- Best Free Gif screen capture app now available for M1 Chip Mac - LICECap
- Find Duplicate Files using Mac Terminal Command
- How to save a file as csv in Windows Notepad? - Microsoft
- How to quit or exit SFTP Prompt on Terminal - Linux
- Calculate Area of ellipse - C-Program
- Parsing Data for android-21 failed unsupported major.minor version 51.0 - Android
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS] - MacOS
- Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Android
- How to exit from nano command - Linux
- How to extract deployed WSP solution from SharePoint FARM using PowerShell - SharePoint