https://github.com/raffeyang/switchterminalprofiletheme
Automatically switch macOS Terminal themes based on the system appearance mode (dark or light). This project provides an efficient solution for users who want their Terminal to adapt to macOS's appearance mode dynamically, enhancing consistency across the system's visual style.
https://github.com/raffeyang/switchterminalprofiletheme
darkmode raycast terminal theme
Last synced: 4 months ago
JSON representation
Automatically switch macOS Terminal themes based on the system appearance mode (dark or light). This project provides an efficient solution for users who want their Terminal to adapt to macOS's appearance mode dynamically, enhancing consistency across the system's visual style.
- Host: GitHub
- URL: https://github.com/raffeyang/switchterminalprofiletheme
- Owner: RaffeYang
- License: mit
- Created: 2024-10-31T01:17:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-31T05:47:06.000Z (over 1 year ago)
- Last Synced: 2025-10-19T14:15:32.890Z (8 months ago)
- Topics: darkmode, raycast, terminal, theme
- Language: AppleScript
- Homepage:
- Size: 13.3 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Switch Terminal Profile Theme
Automatically switch macOS Terminal themes based on the system appearance mode (dark or light). This project provides an efficient solution for users who want their Terminal to adapt to macOS's appearance mode dynamically, enhancing consistency across the system's visual style.


## How to Use
Automatic Theme Switching: Seamlessly switch Terminal themes based on macOS appearance mode (light or dark).
User-Friendly: Easy setup with minimal configuration needed.
Customizable: Supports any Terminal profile that matches your system's light or dark theme preferences.
Installation
1. Clone the Repository:
```bash
git clone git@github.com:raffeyang/SwitchTerminalProfileTheme.git
cd SwitchTerminalProfileTheme
```
2. Script Setup:
Copy `SwitchTerminalProfile.applescript` to a suitable directory, like `~/.bin`:
```bash
cp SwitchTerminalProfile.applescript ~/.bin/SwitchTerminalProfile.applescript
```
3. Add the following line to your `.zshrc` or `.bashrc` file:
```bash
# Initialize Terminal Theme
~/.bin/Initialize\ Terminal.sh
```
4. Raycast Integration (Optional):
Use an application like Raycast to run AppleScript.
Add Toggle System Appearance.applescript to Raycast for easy toggling of the macOS appearance mode.

Run Toggle System Appearance in Raycast: This will manually switch your macOS theme, and Terminal will adapt accordingly.
Usage
Automatic Theme Switching: Launch Terminal to automatically set the profile based on the macOS appearance mode.
Manual Toggle: You can toggle the system appearance using the Toggle System Appearance script in Raycast to see the Terminal theme change immediately.
How It Works
https://github.com/user-attachments/assets/8cf48848-0847-42e1-95c6-1f342d2aa491
The SwitchTerminalProfile.applescript detects macOS's current appearance setting (dark or light mode) and applies the corresponding Terminal profile. The Initialize Terminal.sh script ensures this setting is applied whenever the Terminal is launched.
## Contribution
Contributions are welcome! Feel free to submit pull requests or open issues to improve this script.
Let me know if you need further adjustments!