Automatically switch Terminal profiles when macOS dark/light mode changes
The easiest way to use auto-terminal-profile is to install the auto-terminal-profile Homebrew formula and run it as a Homebrew service:
-
Install
brew install patrik-csak/tap/auto-terminal-profile
-
Import the Terminal profiles you want to use if you haven’t already
-
Set your preferred dark and light mode profiles:
auto-terminal-profile config setOr set profiles individually
auto-terminal-profile config set dark 'Clear Dark' auto-terminal-profile config set light 'Clear Light'
-
Enable automatic switching
brew services start auto-terminal-profile
The process will run as a macOS launchd agent, and will start automatically on login
Disable automatic switching
brew services stop auto-terminal-profile
You can use the auto-terminal-profile npm package directly, but it doesn’t have built-in background service management
-
Install
npm install --global auto-terminal-profile
-
Set your preferred dark and light mode profiles:
auto-terminal-profile config setOr set profiles individually
auto-terminal-profile config set dark 'Clear Dark' auto-terminal-profile config set light 'Clear Light'
-
Enable automatic switching
auto-terminal-profile watch
The process will continue until you stop it with Ctrl+C
- patrik-csak/mac-terminal · Node.js library to control the macOS Terminal app, used by this app