#!/bin/bash # Refresh vendored upstream port files (setup/fetch-ports.sh). # # This script lives outside the stow packages (setup/) and is NOT run # by the test harness: it contacts the network. Run it manually when you # want to pull newer upstream Catppuccin ports into the central theme: # # bash setup/fetch-ports.sh # # The central palette (theme.lua / theme.css roles / hypr.conf) remains the # source of truth; after fetching, re-apply the provenance headers and the # role-alias block at the end of theme.css if upstream overwrote them. set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" DEST="$SCRIPT_DIR/../basic/.config/themes/themes/catppuccin-mocha" # Pinned upstream revisions (bump deliberately, then run this script). KITTY_PIN="main" curl -fsSL "https://raw.githubusercontent.com/catppuccin/kitty/${KITTY_PIN}/themes/mocha.conf" \ -o "$DEST/kitty.conf" echo "ports refreshed into $DEST" echo "reminder: re-apply file headers + theme.css role aliases, then run scripts/sync-theme.sh"