Migrate more options to chezmoi

- Add boolPrompt for _hasGui_ to allow to run some scripts confitionally
- Add script to setup catppuccin GTK theme
This commit is contained in:
Alexander Navarro 2024-03-08 13:15:33 -03:00
parent 15eae692d7
commit 39d5da142c
1061 changed files with 26 additions and 103109 deletions

View file

@ -0,0 +1,25 @@
{{- if eq .hasGui true -}}
#!/usr/bin/env bash
# ╭──────────────────────────────────────────────────────────╮
# │ Setup Catppuccin GTK theme │
# ╰──────────────────────────────────────────────────────────╯
set -e
tmp_dir="$(mktemp -d)"
cd "$tmp_dir"
git clone --recurse-submodules git@github.com:catppuccin/gtk.git
cd gtk
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python install.py macchiato --link -a teal -d ~/.themes --tweaks normal
rm -rf "$tmp_dir"
{{ end }}