This script generates a customized Minecraft resource pack by recoloring textures using Caelestia.
It automatically downloads the Catppuccin resource pack from Modrinth and recolors it to match your current Caelestia color scheme.
Install using pkgit:
pkgit -i dim-ghub/Minecraft-Caelestiaor clone this repository and run:
pkgit -i .The installer will:
- Download your chosen Catppuccin flavor and accent color from Modrinth
- Set up the posthook scripts
- Configure
~/.config/caelestia/cli.jsonto run automatically on wallpaper changes
- rsync
- python3
- numpy
- Pillow
- ydotool
- jq
- hyprctl
- curl
- unzip
-
Color Scheme
- Gets colors directly from
caelestia scheme get - Maps Catppuccin palette colors to your current Caelestia theme colors
- Gets colors directly from
-
Recolored Pack
- Generated resource pack is saved to
~/.local/state/caelestia/theme/ - Symlinks are created from Minecraft resource pack directories to this location
- Generated resource pack is saved to
-
File Processing
- Recursively scans the source resource pack
- Image files (
.png,.jpg) are recolored using a lookup table - Non-image files are copied unchanged
- The LUT is cached for instant subsequent runs
-
Verbose Mode
- If run with
-v, logs every action to the terminal
- If run with
~/.local/bin/posthooks/minecraft.sh --add ~/.minecraft/resourcepacks
~/.local/bin/posthooks/minecraft.sh --add ~/instances/forge/resourcepacks ~/instances/fabric/resourcepacks~/.local/bin/posthooks/minecraft.sh~/.local/bin/posthooks/minecraft.sh -vpkgit -r Minecraft-Caelestia~/.local/bin/posthooks/
├── minecraft.sh # Main posthook script
└── minecraft/
├── recolor.py # Python recoloring engine
├── lut.npy # Cached lookup table (generated at runtime)
└── RP/ # Source resource pack (Catppuccin)
~/.local/state/caelestia/theme/ # Recolored resource pack
~/.config/caelestia/cli.json # Caelestia CLI config (posthook auto-configured)