{"id":13626279,"url":"https://github.com/sos4nt/dynamic-colors","last_synced_at":"2026-03-15T05:43:25.368Z","repository":{"id":3065696,"uuid":"4088323","full_name":"sos4nt/dynamic-colors","owner":"sos4nt","description":"Change terminal colors on the fly","archived":false,"fork":false,"pushed_at":"2024-02-27T18:30:28.000Z","size":17,"stargazers_count":198,"open_issues_count":18,"forks_count":41,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-02T22:23:21.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/sos4nt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2012-04-20T15:53:28.000Z","updated_at":"2024-07-15T15:33:01.000Z","dependencies_parsed_at":"2024-01-14T07:14:11.835Z","dependency_job_id":"d0a61930-7d14-44d0-877a-dbf4ce83eeb7","html_url":"https://github.com/sos4nt/dynamic-colors","commit_stats":{"total_commits":21,"total_committers":6,"mean_commits":3.5,"dds":0.5238095238095238,"last_synced_commit":"47a91bb6bf4091a282cc29aaf3375cdae1340ad0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sos4nt%2Fdynamic-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sos4nt%2Fdynamic-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sos4nt%2Fdynamic-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sos4nt%2Fdynamic-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sos4nt","download_url":"https://codeload.github.com/sos4nt/dynamic-colors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223716478,"owners_count":17191053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-01T21:02:14.556Z","updated_at":"2025-12-18T09:38:42.330Z","avatar_url":"https://github.com/sos4nt.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# dynamic-colors\n\nThis is a small tool for changing your terminal colors on the fly.\n\nI use it to switch my entire [tmux](http://tmux.sourceforge.net/) session between [Solarized](http://ethanschoonover.com/solarized) dark and light modes.\n\n\n## Pre-requisites\n\nYour terminal must support the appropriate OSC escape sequences. xterm and urxvt (rxvt-unicode) work fine, whereas Terminal.app and iTerm won't recognize these sequences.\n\nMake sure `dynamicColors` is enabled in `.Xdefaults`/`.Xresources`\n\n    xterm*dynamicColors: true\n    urxvt*dynamicColors: on\n\n### Compatibility Check\n\nThis changes your terminal background color to red if your terminal supports OCS:\n\n    echo -e \"\\033]11;#ff0000\\007\"\n\n\n## Setup\n\n1. Clone the repository into `~/.dynamic-colors`:\n\n        git clone https://github.com/sos4nt/dynamic-colors ~/.dynamic-colors\n\n2. To add the tool to your `PATH` put the following line in your profile (`.bashrc`/`.zshrc`/`.profile`).\n\n        export PATH=\"$HOME/.dynamic-colors/bin:$PATH\"\n\n3. For autocompletion add this to your profile (`.bashrc`/`.zshrc`/`.profile`). Change .zsh to .bash for bash environments.\n\n        source $HOME/.dynamic-colors/completions/dynamic-colors.zsh\n\n\n## Usage\n\nList available color schemes:\n\n    dynamic-colors list\n\nSwitch to a color scheme:\n\n    dynamic-colors switch solarized-dark\n\nReload last color scheme:\n\n    dynamic-colors init\n\nAdd this line to your profile to always set the last color scheme.\n\n### Integration\n\nI'm using the provided color schemes in conjunction with [dircolors-solarized](https://github.com/seebi/dircolors-solarized) and [vim-colors-solarized](https://github.com/altercation/vim-colors-solarized) for best results. Always use the dark mode and switch schemes with `dynamic-colors switch \u003ccolorscheme\u003e`\n\n\n## Developing color schemes\n\nCreate a new color scheme (will be opened in your default editor):\n\n    dynamic-colors create my-color-scheme\n\nEdit an exising color scheme:\n\n    dynamic-colors edit my-color-scheme\n\nCheck if all colors are defined:\n\n    dynamic-colors audit my-color-scheme\n\n## Key binding example for urxvt\nSave this to a file named \"urxvt-colors\":\n\n    sub on_user_command {\n        my ($self, $cmd) = @_;\n        my $output = `dynamic-colors cycle`;\n        $self-\u003ecmd_parse($output);\n    }\n\nAdd this to ~/.Xdefaults:\n\n    urxvt*perl-ext-common: urxvt-colors\n    urxvt*perl-lib: [directoy of urxvt-colors]\n    urxvt*keysym.F12: perl:urxvt-colors:\n\nNow you can cycle through all color schemes using F12 for example,\nwithout closing running console applications.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsos4nt%2Fdynamic-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsos4nt%2Fdynamic-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsos4nt%2Fdynamic-colors/lists"}