{"id":32363445,"url":"https://github.com/bennypowers/colorscript.fish","last_synced_at":"2025-10-24T16:58:21.690Z","repository":{"id":304830051,"uuid":"1020160296","full_name":"bennypowers/colorscript.fish","owner":"bennypowers","description":"Fish version of DistroTube's classic `colorscript` bash script, with new features and QoL improvements","archived":false,"fork":false,"pushed_at":"2025-07-24T16:06:07.000Z","size":294,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-24T21:53:38.635Z","etag":null,"topics":["colorscripts","fish-plugin","fish-shell"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bennypowers.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,"zenodo":null}},"created_at":"2025-07-15T12:36:56.000Z","updated_at":"2025-07-24T16:06:11.000Z","dependencies_parsed_at":"2025-07-16T07:08:43.474Z","dependency_job_id":"aa30eceb-372d-4638-94f1-5859fb178790","html_url":"https://github.com/bennypowers/colorscript.fish","commit_stats":null,"previous_names":["bennypowers/colorscript.fish"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bennypowers/colorscript.fish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcolorscript.fish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcolorscript.fish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcolorscript.fish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcolorscript.fish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennypowers","download_url":"https://codeload.github.com/bennypowers/colorscript.fish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcolorscript.fish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280833013,"owners_count":26398971,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["colorscripts","fish-plugin","fish-shell"],"created_at":"2025-10-24T16:58:18.794Z","updated_at":"2025-10-24T16:58:21.676Z","avatar_url":"https://github.com/bennypowers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌈 colorscript.fish 🐠 \n\nhttps://github.com/user-attachments/assets/437e33da-32ba-4328-acf0-2980393cab1a\n\nA modern, Fish-native version of the classic `colorscript` utility, inspired by the [Bash version by DistroTube (DT)](https://gitlab.com/dwt1/shell-color-scripts). This version is packaged as a [Fisher](https://github.com/jorgebucaran/fisher) plugin for simple installation and management of shell color scripts.\n\n## Installation\n\nInstall with [Fisher](https://github.com/jorgebucaran/fisher):\n\n```fish\nfisher install bennypowers/colorscript.fish\n```\n\n## Usage\n\nThe main command is `colorscript`.\n\n```\nUsage: colorscript [option]\nOptions:\n    -h, --help                Show this help message\n    -l, --list                List all color scripts\n    -r, --random              Run a random color script\n    -e, --exec                Execute a specific color script by name\n    --animate \u003cname\u003e          Animate a sequence of colorscripts\n        [-d|--delay \u003cms\u003e]     Delay between frames in milliseconds (default: 333)\n    generate \u003cpath_or_url\u003e    Generate new colorscripts from a sprite sheet\n```\n\n### Examples\n\n- **Run a random script:** `colorscript -r`\n- **List all available scripts:** `colorscript -l`\n- **Execute a specific script:** `colorscript -e myscript`\n\n### Animating Scripts\n\nThe `--animate` option runs a sequence of scripts in a loop. To create an animation, you must name your files according to a specific pattern:\n\n-   `animation_name.fish` (or `.sh`)\n-   `animation_name.1.fish`\n-   `animation_name.2.fish`\n-   ...and so on.\n\nThe command `colorscript --animate animation_name` will find all scripts starting with `animation_name` followed by an optional number, sort them naturally, and play them in a loop.\n\n- **Animate a set of scripts:** `colorscript --animate animation_name`\n- **Animate with a custom delay:** `colorscript --animate animation_name --delay 100`\n\n## Generating New Scripts\n\nThe `generate` subcommand uses a powerful Python script (`gen-colorscript.py`) to create new colorscripts from local or remote sprite sheets. The generator intelligently separates sprites from a sheet, even those with disconnected parts, and prompts you to name and save each one.\n\nTo generate scripts:\n\n```fish\ncolorscript generate /path/to/your/sprites.png\n```\n\nOr from a URL:\n\n```fish\ncolorscript generate https://example.com/sprites.png\n```\n\n### Dependencies for the `generate` subcommand:\n\n- **Python 3.6+**\n- **Python Libraries**: `Pillow` and `requests`. You can install them using pip:\n  ```sh\n  pip install Pillow requests\n  ```\n\n## Script Directory\n\nColor scripts are stored in the following directory, following the XDG Base Directory Specification:\n\n-   `$XDG_DATA_HOME/colorscripts` (if `$XDG_DATA_HOME` is set)\n-   `~/.local/share/colorscripts` (as a fallback)\n\nThe `gen-colorscript.py` script will automatically create this directory and save new scripts there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennypowers%2Fcolorscript.fish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennypowers%2Fcolorscript.fish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennypowers%2Fcolorscript.fish/lists"}