{"id":21770504,"url":"https://github.com/mcpcpc/kfc","last_synced_at":"2025-04-13T16:40:59.954Z","repository":{"id":55484410,"uuid":"277360829","full_name":"mcpcpc/kfc","owner":"mcpcpc","description":"A terminal-emulator color palette setter written in POSIX C99.","archived":false,"fork":false,"pushed_at":"2024-05-04T12:47:10.000Z","size":171,"stargazers_count":32,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T07:35:50.297Z","etag":null,"topics":["ansii","c","colors","kiss","palettes","posix"],"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/mcpcpc.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":".github/CONTRIBUTING","funding":".github/FUNDING.yml","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},"funding":{"github":"mcpcpc","custom":"https://www.paypal.me/mcpcpc/usd5"}},"created_at":"2020-07-05T18:30:09.000Z","updated_at":"2025-02-15T04:22:56.000Z","dependencies_parsed_at":"2024-11-26T15:15:23.534Z","dependency_job_id":null,"html_url":"https://github.com/mcpcpc/kfc","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fkfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fkfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fkfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fkfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcpcpc","download_url":"https://codeload.github.com/mcpcpc/kfc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248746926,"owners_count":21155350,"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":["ansii","c","colors","kiss","palettes","posix"],"created_at":"2024-11-26T14:12:53.293Z","updated_at":"2025-04-13T16:40:59.934Z","avatar_url":"https://github.com/mcpcpc.png","language":"C","funding_links":["https://github.com/sponsors/mcpcpc","https://www.paypal.me/mcpcpc/usd5"],"categories":[],"sub_categories":[],"readme":"kfc\n\nKISS for colors, a terminal-emulator color palette setter written in POSIX C99.\n\n\nBACKGROUND\n----------\n\nThis project was inspired by Dylan Arap's POSIX shell script, okpal [0], which\nutilizes 16 ANSI colors to control the color scheme of existing terminal-emulator\nwindows. This allows one to achieve consistent colors across all terminal \nutilities and applications. This application has similar functionality to okpal \nbut is designed with execution speed in mind. There are currently 300 light and \ndark color palettes offered at this time that can be applied and quickly swapped \nout for others.\n\n\nCOMPATIBILITY\n-------------\n\nCompatibility with the following terminator-emulators have been tested:\n\n- simple terminal, st [1]\n- alacritty [2]\n- xterm [3]\n- kitty [4]\n\n\nDEPENDENCIES\n------------\n\nOther than a terminal-emulator and C99 compiler, this application has no other \ndependencies.\n\n\nINSTALLATION\n------------\n\nBuilding and installing from source:\n\n    git clone https://github.com/mcpcpc/kfc.git\n    cd kfc/\n    make\n    make install\n\nInstalling on KISS Linux:\n\n    kiss b kfc\n    kiss i kfc\n\n\nUSAGE\n-----\n\nkfc [-L] [-r|-s palette] [-l|-p|-v]\n-L          Set light themes (modifier for -s/-r/-l)\n-r          Select a random palette (dark theme by default)\n-s palette  Select a palette (dark theme by default)\n-l          List palettes (dark themes by default)\n-p          Print current palette\n-v          Show version information\n\n\nEXAMPLES\n--------\n\nFor the following examples, remember to replace PALETTE with your preferred \ncolor schema name. \n\n- To see if a specific light color palette is available:\n\n      kfc -lL | grep PALETTE\n\n- To apply the light version of the PALETTE:\n\n      kfc -Ls PALETTE\n\n- To verify that the palette was applied (or see the last palette that was\n  applied):\n\n      kfc -p\n\n- To apply a color palette automatically to a new terminal window, you can add \n  the following line to one of your system startup files (e.g ~/.profile,\n  ~/.ashrc or ~/.bashrc):\n  \n      [ -x \"$(command -v kfc)\" ] \u0026\u0026 kfc -s PALETTE\n\nRefer to the USAGE section for more information on command arguments.\n\n\nNEW PALETTES\n------------\n\nUsers can contribute their own custom color palettes (using the supplied template\nin the docs/ folder) by creating a Pull Request.\n\n\nREFERENCES\n----------\n[0] https://github.com/dylanaraps/okpal\n[1] Note that background, foreground and cursor color setting does not work\n    without applying the 'OSC 10 11 12' patch.\n    https://st.suckless.org\n[2] Confirmed to work in wayland (per sdsddsd1).\n    https://github.com/mcpcpc/kfc/issues/1\n[3] Confirmed by periish.\n    https://github.com/mcpcpc/kfc/issues/3\n[4] Confirmed by emokoi\n    https://github.com/mcpcpc/kfc/issues/4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcpcpc%2Fkfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcpcpc%2Fkfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcpcpc%2Fkfc/lists"}