xxwhirlpool
·
2026-03-27
dots_gotm_site.sh
1#!/usr/bin/env bash
2
3dots_home="/home/kat/dotfiles"
4orange_var="ef9f76"
5pink_var="f08eca"
6
7build_site() {
8 # build
9 pgit --revs main --repo "/home/kat/dotfiles" --label dots --out ./public --theme catppuccin-frappe
10 # replace orange with pink
11 sed -i "s/$orange_var/$pink_var/g" "./public/vars.css"
12}
13
14sync_site() {
15 # deploy to pgs.sh
16 rsync --delete -rv ./public/ pgs.sh:/dots
17 # delete public/ folder in dotfiles dir
18 rm -rf /home/kat/dotfiles/public/
19}
20
21case "$1" in
22 "") cd "$dots_home" && build_site && sync_site;;
23esac