{"id":13538736,"url":"https://github.com/metaory/mxcolr-v2","last_synced_at":"2025-07-15T10:37:54.338Z","repository":{"id":74378722,"uuid":"471611921","full_name":"metaory/mxcolr-v2","owner":"metaory","description":"[WIP] ヘ Generate, Preview and Apply beautiful unified human friendly pseudo random color schemes, SYSTEM WIDE!","archived":false,"fork":false,"pushed_at":"2022-03-24T02:00:06.000Z","size":10155,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T13:55:45.804Z","etag":null,"topics":["bash","cli","color","color-generator","color-scheme","colorscheme","colorscheme-generator","comand-line","palette-generator","pastel","terminal","theme"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metaory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-03-19T06:29:56.000Z","updated_at":"2024-05-14T05:55:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"021db9ac-d95a-4571-bd49-7994d0658416","html_url":"https://github.com/metaory/mxcolr-v2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/metaory/mxcolr-v2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fmxcolr-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fmxcolr-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fmxcolr-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fmxcolr-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/mxcolr-v2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fmxcolr-v2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265429148,"owners_count":23763694,"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":["bash","cli","color","color-generator","color-scheme","colorscheme","colorscheme-generator","comand-line","palette-generator","pastel","terminal","theme"],"created_at":"2024-08-01T09:01:15.313Z","updated_at":"2025-07-15T10:37:54.284Z","avatar_url":"https://github.com/metaory.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# mxcolr-v2 ▲\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/2022-01-29-163127_318x127_scrot.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/2022-01-29-190221_2560x1080_scrot.png\"\u003e\n\u003c/p\u003e\n\nFeatures\n========\n- Pseudo Random Palette Generation\n- Live terminal preview _currently only for alacritty / tmux_\n- Template parsing and Variable Replacement\n- Plugin mechanics for advance usage\n\nUsage\n=====\n    chmod +x mxcolr\n    mxcolr [-s \u003cvivid|lch\u003e] [-i]\n\n    -s  | (Pastel randomization strategy) default is vivid\n    -i  | interactive mode\n\n### every file in `./templates/{tpl}` will be parsed;\n### scheme variables replaced; and placed in `./out/{tpl}`\n\n![generate](https://github.com/metaory/mxcolr-v2/wiki/assets/gifcast_220324095716.gif)\n\n\n`SBG`, `WBG`, `EBG` are trio of randomely generated colors, they are the core of the palette\n\u003e Given the same `seed`, its guaranteed the same `scheme file` be produced.\n\nPossible variables available in all templates or plugins are:\n```bash\nC00 C01 C02 C03 C04 C05 C06 C07 C08 C09 C10 C11 C12 C13 C14 C15\n    CX1 CX2 CX3 CX4 CX5 CX6 # extra saturated\n    CY1 CY2 CY3 CY4 CY5 CY6 # extra desaturated\n    CF1 CF2 CF3 CF4 CF5 CF6 # fg color on CX bg\n\nSBG WBG EBG # seed bg colors\nSFG WFG EFG # seed fg colors\n\nSK0 SK1 SK2 SK3 SK4 SK5 SK6 SK7 SK8 SK9 # S shades\nWK0 WK1 WK2 WK3 WK4 WK5 WK6 WK7 WK8 WK9 # W shades\nEK0 EK1 EK2 EK3 EK4 EK5 EK6 EK7 EK8 EK9 # E shades\n\nXBG # main bg colors\nXFG # main fg colors\n```\nAdvance Usage\n=============\nif further steps required to patch an app a plugin `sh` file can be added to plugins folder to make the additinal steps\n\neach `sh` file presents in `./plugins` folder is treated as a plugin and is sourced\n\nits expected to follow these patterns:\n* filename: `[0-9]-[a-z_].sh` _eg `1-vim.sh`_\n  * prefix number is the `order` its loaded, 0 means disabled\n  * suffix the `plugin_name`\n* plugin file is expected to have a function named `apply`\n  this function will be called with confirmation prompt\n\n\u003e current active loaded theme variables are available to plugin\n\n\u003e all templates if any are parsed before calling apply_ function\n\n\u003e plugins outputs will first be drafted in `/tmp/mxc` and later upon confirmation prompt moved to `~/.config/mxc-v2/{plugin_name}`\nunless different destination is set\n\n\nMotivations\n===========\nWhile tools like Oomox and Spicetify are great in reallity you probably got more than GTK theme and Icons you'd want to patch\n\nTerminal colors, terminal prompt, window manager / status bar theme / icons, Vim/Atom/SourceCode editor and more\n\nSome apps might require to compile and build, all of these are just too repetitive and anoying to do for every change, then there is the never ending search for the right color scheme\n\nWhat about\n----------\n- [Pywal](https://github.com/dylanaraps/pywal): all about Wallpaper,, great documentation and support though.\n\u003e almost all [pywal-customization](https://github.com/dylanaraps/pywal/wiki/customization) can be easilly added\n- [Oomox](https://github.com/themix-project/oomox) plugins: possible,, to mxcolr, oomox is just another plugin for gtk theme and icon\n\n#### This repo goal is to be a tool for generating and previewing palettes and serve as a framework for patching any application with few keystrokes.\n\n\nRequirements\n------------\n- [pastel](https://github.com/sharkdp/pastel)\n- [GNU bc](https://www.gnu.org/software/bc)\n\n## this project is the version 2 of [mxcolr](https://github.com/metaory/mxcolr)\n\n## V2 Roadmap\n- [X] plugin mechanics\n- [X] live preview* alacritty only\n- [X] interactive mode\n- [ ] snapshots\n- [ ] demos\n\n## Similar projects\n- [xi/xiwal](https://github.com/xi/xiwal) Generate terminal color schemes -- _python_\n- [piutranq/cologen](https://github.com/piutranq/cologen) The simple color scheme configuration generator, inspired by base16-builder. -- _rust_\n- [kumux/kumux-colorscheme-engine](https://github.com/kumux/kumux-colorscheme-engine) Kumux is the world's first dynamic circadian color scheme for code editors and other software. -- _javascript_\n- [dylanaraps/pywal](https://github.com/dylanaraps/pywal) Generate and change color-schemes on the fly. -- _python_\n- [themix-project/oomox](https://github.com/themix-project/oomox) Graphical application for generating different color variations of a Materia and Oomox themes -- _python_\n- [spicetify/spicetify-cli](https://github.com/spicetify/spicetify-cli) Commandline tool to customize Spotify client -- _javascript_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fmxcolr-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Fmxcolr-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fmxcolr-v2/lists"}