# crossfetch ☧ [![CI](https://github.com/DAEMON-404/crossfetch/actions/workflows/ci.yml/badge.svg)](https://github.com/DAEMON-404/crossfetch/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-gold.svg)](LICENSE) An animated **Chi-Rho terminal dashboard** with a liturgical-calendar heart. The Chi-Rho (Labarum) — the Greek letters **Chi (Χ)** and **Rho (Ρ)**, the monogram of *Christos* that Constantine adopted — detonates on your terminal in a two-colour shockwave, glows beside your system specs, and changes its colours with the seasons of the church year. Advent turns it purple, Christmastide gold, Holy Week crimson — automatically, every day, no manual steps. On major feast days a special emblem (the Star of Bethlehem, the Dove, the Crown of Thorns) plays a one-time fullscreen animation, once per feast per year. Inspired by [hyfetch](https://github.com/hykilpikonna/hyfetch) — its pride-month easter egg is where the "seasonal one-shot animation" idea comes from, reimagined here around the Western liturgical calendar. Credit and thanks to the hyfetch authors. No hyfetch code is used; crossfetch is written from scratch and drives [fastfetch](https://github.com/fastfetch-cli/fastfetch) for the system-info side. ## Features - **Live animated splash** in the alternate screen buffer (scrollback untouched): `burst` (charging symbol + banded two-colour shockwave), `ring` (orbiting comet), `rain` (falling trails), or `both`. - **`--fetch`** — your specs next to the symbol, with a light-crest sweep and a lingering shimmer on the logo. - **`--logo`** — static rainbow art on stdout, made to be embedded as a fastfetch `file-raw` logo. - **Liturgical engine** (`liturgy.py`) — pure date math, no I/O: Gregorian (Meeus) Easter computus, season lookup, feast lookup. | Season | Colours (accent roles) | |---|---| | Advent | iris + subtle (purple) | | Christmastide | gold + text | | Lent | iris + muted (purple) | | Holy Week | love + muted (crimson) | | Eastertide | gold + foam | | Ordinary Time | love + gold | - **Feast days** — Christmas, Epiphany, Ash Wednesday, Palm Sunday, Good Friday, Easter, Ascension, Pentecost, All Saints. Each carries its own colours, a verse, and an emblem; the first interactive launch on the day plays a fullscreen burst once (recorded in `~/.local/state/crossfetch/shown.json`). Replay any feast on demand: `crossfetch --feast good_friday`. - **Nine emblems** — `chi`, `orthodox`, `jerusalem`, `ichthys`, `kali`, `skull`, `star` (Bethlehem), `dove` (Pentecost), `thorns` (Good Friday). - **Seven themes** (`ricefx.py`) — `rose-pine` (default), `rose-pine-dawn`, `tokyo-night`, `gruvbox`, `catppuccin-mocha`, `nord`, `dracula`. Colours are *role names* (`love gold rose pine foam iris …`) resolved through the active theme, so the liturgical seasons re-skin themselves on every theme. - **fastfetch config generator** — `crossfetch --sync-fastfetch` renders `fastfetch.template.jsonc` with the active theme's palette into `~/.config/fastfetch/config.jsonc`, comments intact, with a contrast guard so no key colour falls below readability on the theme background. - **Daily verse** — rotated from `verses.txt`, overridden by the feast's own verse on feast days. ## Install ```sh git clone https://github.com/DAEMON-404/crossfetch.git ~/.config/crossfetch install -m 755 ~/.config/crossfetch/bin/crossfetch ~/.local/bin/crossfetch install -m 644 ~/.config/crossfetch/bin/liturgy.py ~/.local/bin/liturgy.py install -m 644 ~/.config/crossfetch/bin/ricefx.py ~/.local/bin/ricefx.py ``` Requires Python 3 and a truecolor terminal. `fastfetch` is optional but is what `--fetch` and `--sync-fastfetch` are built around. ## Usage ``` crossfetch [burst|ring|rain|both] live animated dashboard crossfetch --fetch [secs] specs + glowing symbol crossfetch --logo [symbol] static rainbow art (for fastfetch) crossfetch --sync-fastfetch render themed fastfetch config crossfetch --feast [id] replay a feast animation on demand ``` ### Environment | Variable | Meaning | |---|---| | `RICEFX_THEME` | active theme (default `rose-pine`; auto light/dark otherwise) | | `CROSS_MODE` | `burst` \| `ring` \| `rain` \| `both` | | `CROSS_SYMBOL` | which emblem to draw | | `CROSS_BURST` | explicit accent pair (`love,gold`) — always wins over the season | | `CROSS_LITURGY` | `off` disables all liturgical colouring | | `CROSS_FEAST` | `off` disables feast emblems + one-shot animations only | | `CROSS_TIMEOUT` | seconds before auto-exit (0 = until keypress) | | `CROSS_GLOW` | seconds of `--fetch` shimmer | | `CROSS_FPS` | frame-rate ceiling | | `NO_COLOR` | skips every animation | `--feast` is an explicit replay: it deliberately ignores `CROSS_LITURGY` and `CROSS_FEAST`, which gate only the automatic behaviour. ### Recipes Everything is configurable per-launch or persistently (export in your shell rc): ```sh RICEFX_THEME=gruvbox crossfetch # same rig, gruvbox palette RICEFX_THEME=catppuccin-mocha crossfetch --logo # static art in another theme CROSS_MODE=rain crossfetch # falling-trails animation instead CROSS_SYMBOL=ichthys crossfetch --fetch # fish emblem next to your specs CROSS_BURST=iris,rose crossfetch # pin your own colour pair year-round CROSS_LITURGY=off crossfetch # no church-calendar colouring at all CROSS_TIMEOUT=5 crossfetch both # auto-exit after 5s, alternate modes crossfetch --feast pentecost # replay the dove any day you like crossfetch --sync-fastfetch # re-skin fastfetch to current theme ``` Set-and-forget example for `~/.zshrc`: ```sh export RICEFX_THEME="tokyo-night" # theme for everything export CROSS_MODE="burst" export CROSS_GLOW="1.6" ``` ### Shell integration A zsh startup block regenerates the logo files and the themed fastfetch config once per day (or whenever `RICEFX_THEME` changes), tracked by a marker in `~/.local/state/crossfetch/last-render` — so the static art follows the liturgical season with zero launch-time cost. ## Tests ```sh pytest tests -q ``` Covers the Easter computus against known dates (2024–2030), season boundaries, feast hits and misses, theme-table completeness, emblem mask geometry, the feast one-shot gate, and a byte-identical round-trip of the fastfetch template against a committed fixture. ## Credits - [hyfetch](https://github.com/hykilpikonna/hyfetch) — inspiration for the seasonal easter-egg pattern and the joy of a fetch tool with a personality. - [fastfetch](https://github.com/fastfetch-cli/fastfetch) — the system-info engine this decorates. - [Rosé Pine](https://rosepinetheme.com/) and the other theme palettes belong to their respective authors. *Soli Deo gloria.*