Files
dotfiles/basic/scripts/fetch-ports.sh
T
2026-09-21 22:39:09 +02:00

33 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Refresh vendored upstream port files (basic/scripts/fetch-ports.sh).
#
# This script is intentionally NOT stowed (basic/.stow-ignore) and 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 basic/scripts/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/../.config/themes/themes/catppuccin-mocha"
# Pinned upstream revisions (bump deliberately, then run this script).
KITTY_PIN="main"
WAYBAR_PIN="main"
ROFI_PIN="main"
curl -fsSL "https://raw.githubusercontent.com/catppuccin/kitty/${KITTY_PIN}/themes/mocha.conf" \
-o "$DEST/kitty.conf"
curl -fsSL "https://raw.githubusercontent.com/catppuccin/waybar/${WAYBAR_PIN}/themes/mocha.css" \
-o "$DEST/theme.css"
curl -fsSL "https://raw.githubusercontent.com/catppuccin/rofi/${ROFI_PIN}/themes/catppuccin-mocha.rasi" \
-o "$DEST/rofi.rasi"
echo "ports refreshed into $DEST"
echo "reminder: re-apply file headers + theme.css role aliases, then run scripts/sync-theme.sh"