{"id":23041486,"url":"https://github.com/raffeyang/switchterminalprofiletheme","last_synced_at":"2026-02-20T18:05:42.072Z","repository":{"id":260407515,"uuid":"881139321","full_name":"RaffeYang/SwitchTerminalProfileTheme","owner":"RaffeYang","description":"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.","archived":false,"fork":false,"pushed_at":"2024-10-31T05:47:06.000Z","size":13920,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T14:15:32.890Z","etag":null,"topics":["darkmode","raycast","terminal","theme"],"latest_commit_sha":null,"homepage":"","language":"AppleScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaffeYang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-31T01:17:06.000Z","updated_at":"2024-12-30T06:47:30.000Z","dependencies_parsed_at":"2024-10-31T06:34:19.189Z","dependency_job_id":null,"html_url":"https://github.com/RaffeYang/SwitchTerminalProfileTheme","commit_stats":null,"previous_names":["raffeyang/switchterminalprofiletheme"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RaffeYang/SwitchTerminalProfileTheme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaffeYang%2FSwitchTerminalProfileTheme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaffeYang%2FSwitchTerminalProfileTheme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaffeYang%2FSwitchTerminalProfileTheme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaffeYang%2FSwitchTerminalProfileTheme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaffeYang","download_url":"https://codeload.github.com/RaffeYang/SwitchTerminalProfileTheme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaffeYang%2FSwitchTerminalProfileTheme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29659755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["darkmode","raycast","terminal","theme"],"created_at":"2024-12-15T19:34:46.919Z","updated_at":"2026-02-20T18:05:37.062Z","avatar_url":"https://github.com/RaffeYang.png","language":"AppleScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Switch Terminal Profile Theme\n\nAutomatically 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.\n\n![Terminal Dark](./images/TerminalDark.png)\n![Terminal Light](./images/TerminalLight.png)\n\n## How to Use\n\nAutomatic Theme Switching: Seamlessly switch Terminal themes based on macOS appearance mode (light or dark).\nUser-Friendly: Easy setup with minimal configuration needed.\nCustomizable: Supports any Terminal profile that matches your system's light or dark theme preferences.\nInstallation\n\n1. Clone the Repository:\n\n```bash\ngit clone git@github.com:raffeyang/SwitchTerminalProfileTheme.git\ncd SwitchTerminalProfileTheme\n```\n2. Script Setup: \nCopy `SwitchTerminalProfile.applescript` to a suitable directory, like `~/.bin`:\n\n```bash\ncp SwitchTerminalProfile.applescript ~/.bin/SwitchTerminalProfile.applescript\n```\n\n3. Add the following line to your `.zshrc` or `.bashrc` file:\n```bash\n# Initialize Terminal Theme\n~/.bin/Initialize\\ Terminal.sh\n```\n\n4. Raycast Integration (Optional):\nUse an application like Raycast to run AppleScript.\nAdd Toggle System Appearance.applescript to Raycast for easy toggling of the macOS appearance mode.\n![](./images/Raycast.png)\n\n\nRun Toggle System Appearance in Raycast: This will manually switch your macOS theme, and Terminal will adapt accordingly.\nUsage\n\nAutomatic Theme Switching: Launch Terminal to automatically set the profile based on the macOS appearance mode.\nManual Toggle: You can toggle the system appearance using the Toggle System Appearance script in Raycast to see the Terminal theme change immediately.\nHow It Works\n\n\n\nhttps://github.com/user-attachments/assets/8cf48848-0847-42e1-95c6-1f342d2aa491\n\n\n\nThe 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.\n\n## Contribution\n\nContributions are welcome! Feel free to submit pull requests or open issues to improve this script.\n\nLet me know if you need further adjustments!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraffeyang%2Fswitchterminalprofiletheme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraffeyang%2Fswitchterminalprofiletheme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraffeyang%2Fswitchterminalprofiletheme/lists"}