{"id":13605430,"url":"https://github.com/dylanaraps/paleta","last_synced_at":"2025-04-12T05:33:04.798Z","repository":{"id":49662549,"uuid":"170174067","full_name":"dylanaraps/paleta","owner":"dylanaraps","description":"Change terminal colors on-the-fly independent of terminal emulator.","archived":true,"fork":false,"pushed_at":"2023-01-26T02:07:56.000Z","size":191,"stargazers_count":185,"open_issues_count":2,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-07T10:41:29.317Z","etag":null,"topics":["color-palette","color-schemes","palettes","terminal"],"latest_commit_sha":null,"homepage":"","language":"C","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/dylanaraps.png","metadata":{"files":{"readme":"README","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}},"created_at":"2019-02-11T17:48:42.000Z","updated_at":"2024-11-02T10:08:44.000Z","dependencies_parsed_at":"2023-02-14T13:15:31.735Z","dependency_job_id":null,"html_url":"https://github.com/dylanaraps/paleta","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanaraps%2Fpaleta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanaraps%2Fpaleta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanaraps%2Fpaleta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanaraps%2Fpaleta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanaraps","download_url":"https://codeload.github.com/dylanaraps/paleta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248524260,"owners_count":21118610,"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":["color-palette","color-schemes","palettes","terminal"],"created_at":"2024-08-01T19:00:58.609Z","updated_at":"2025-04-12T05:33:04.471Z","avatar_url":"https://github.com/dylanaraps.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"paleta\n________________________________________________________________________________\n\nChange terminal colors on-the-fly independent of terminal emulator.\n\nMost terminal emulators support a set of escape sequences which allow for the\nmodification of the terminal's color palette. Combined with the ability to write\nto all open terminal devices, this allows for theming in a truly independent way.\n\nPaleta reads a list of colors over \u003cstdin\u003e, transforms the input into the set of\nescape sequences and sends these sequences to every open terminal in the system.\nIt additionally prints the sequences to \u003cstdout\u003e.\n\n+------------------------------------------------------------------------------+\n|                                                                              |\n|  $ paleta \u003c palettes/jellybeans-dark \u003e ~/.cache/current-palette              |\n|                                                                              |\n+------------------------------------------------------------------------------+\n\nThis tool is small and generic. It reads input and writes output. Effortless to\nincorporate with the system. This repository also contains 150~ popular palettes\nready for use with paleta.\n\n\nterminal support\n________________________________________________________________________________\n\n+------------------------------------------------------------------------------+\n|                                                                              |\n|  this list is not complete                                                   |\n|                                                                              |\n|                                                                              |\n|  alacritty  good        https://github.com/alacritty/alacritty/issues/656    |\n|  kitty      good                                                             |\n|  vte [0]    good        1a651cf990e67c4046fbff7674249259bcaa89a8             |\n|  xterm      good                                                             |\n|  urxvt      good                                                             |\n|                                                                              |\n|  st         patch       ./misc/st-osc_10_11_12-20200418-66520e1.patch        |\n|                                                                              |\n|  hyper      clueless    https://github.com/vercel/hyper/issues/2038          |\n|                                                                              |\n|                                                                              |\n+------------------------------------------------------------------------------+\n\n[0] vte includes Termite, XFCE terminal, GNOME terminal, Konsole and many more.\n\n\ndependencies\n________________________________________________________________________________\n\n- POSIX \u003cstdio.h\u003e \u003cstdlib.h\u003e \u003cglob.h\u003e\n- C99 compiler\n\n\nbuild\n________________________________________________________________________________\n\nSee src/config.h for configuration.\n\n+------------------------------------------------------------------------------+\n|                                                                              |\n|  Using make (recommended)                                                    |\n|                                                                              |\n|  $ make                                                                      |\n|  $ make install                                                              |\n|                                                                              |\n|                                                                              |\n|  Invoking the compiler directly                                              |\n|                                                                              |\n|  $ c99 $CFLAGS -o paleta src/paleta.c                                        |\n|                                                                              |\n|                                                                              |\n+------------------------------------------------------------------------------+\n\n\nusage\n________________________________________________________________________________\n\n+------------------------------------------------------------------------------+\n|                                                                              |\n|  1. Set the colorscheme to jellybeans-dark in all open terminals.            |\n|                                                                              |\n|  $ paleta \u003c palettes/jellybeans-dark \u003e ~/.cache/current-palette              |\n|                                                                              |\n+------------------------------------------------------------------------------+\n\nSaving paleta's \u003cstdout\u003e to a file is how the current palette is stored. This\nfile is used to set the palette in newly opened terminals. Scripts might instead\nstore this in a variable or ignore it entirely as they maintain state.\n\n\nsetup\n________________________________________________________________________________\n\nThis line must be added to $SHELL's startup file. It tells future terminals to\nload the current palette at launch.\n\n+------------------------------------------------------------------------------+\n|                                                                              |\n|  $ echo 'cat ~/.cache/current-palette' \u003e\u003e ~/.bashrc                          |\n|                                                                              |\n+------------------------------------------------------------------------------+\n\n\ninput format\n________________________________________________________________________________\n\nInput is one hex color per line, without #. The first three lines are\nreserved for \u003cforeground\u003e, \u003cbackground\u003e and \u003ccursor\u003e with the remaining lines\nfilling the numerical palette (0-256).\n\nExample: https://github.com/dylanaraps/paleta/blob/master/palettes/gruvbox-dark\n\n+------------------------------------------------------------------------------+\n|  format                             |  example                               |\n+-------------------------------------+----------------------------------------+\n|                                     |                                        |\n|  \u003cforeground\u003e                       |  dedede                                |\n|  \u003cbackground\u003e                       |  121212                                |\n|  \u003ccursor\u003e                           |  dedede                                |\n|  \u003ccolor0\u003e                           |  929292                                |\n|  \u003ccolor1\u003e                           |  e27373                                |\n|  \u003ccolor2\u003e                           |  94b979                                |\n|                                     |                                        |\n|  ...                                |  ,,,                                   |\n|                                     |                                        |\n|  \u003ccolor256\u003e                         |  1ab2a8                                |\n|                                     |                                        |\n|                                     |                                        |\n+-------------------------------------+----------------------------------------+\n\nThe maximum palette is (3 + 256). This is configurable at compile-time.\n\n\nsoftware written around paleta\n________________________________________________________________________________\n\n- shuffle through palettes in a directory. https://github.com/dylanaraps/bin/blob/c06b2c0df0194487fc4cb9c65b451b6369e2c398/shuffle\n\n\ntodo\n________________________________________________________________________________\n\n- [ ] Find good 256 color palettes to include. All are currently 16 colors.\n      256 color palettes added to this repository should contain -256 in their\n      filenames.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanaraps%2Fpaleta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanaraps%2Fpaleta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanaraps%2Fpaleta/lists"}