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

@ -1,18 +0,0 @@
#!/usr/bin/env bash
echo -e "\n${BLD}${SUL}${GRN}Setting up config...${RST}\n"
original_pwd="$(pwd)"
cd "$DOTS/config" || exit
readarray -t configs < <(
fd -d 1 \
--exclude "*.old" \
--exclude "create*"
)
for dot in "${configs[@]}"; do
symlink "$(pwd)/$dot" "${CONFIG}"
done
cd "$original_pwd" || exit

View file

@ -1,10 +0,0 @@
#!/usr/bin/env bash
echo -e "\n${BLD}${SUL}${GRN}Setting up ${RED}Rust${GRN}...${RST}\n"
if ! command -v cargo >/dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
fi
# installed through package-manager
# cargo install tree-sitter-cli

View file

@ -1,31 +0,0 @@
#!/usr/bin/env bash
echo -e "\n${BLD}${SUL}${GRN}Setting up themes...${RST}\n"
original_pwd="$(pwd)"
cd "$DOTS/themes" || exit
CURRENT_DESKTOP="$(echo "$XDG_CURRENT_DESKTOP" | awk '{for (i=1;i<=NF;i++) { $i=toupper(substr($i,1,1)) tolower(substr($i,2)) }}1')"
gtk() {
cd gtk || return
create "$THEMES"
for theme in "$PWD"/*; do
symlink "$theme" "${THEMES}"
done
}
case "$CURRENT_DESKTOP" in
Gnome)
gtk
;;
*)
echo "Desktop $CURRENT_DESKTOP have no setup..."
;;
esac
cd "$original_pwd" || return

View file

@ -1,12 +0,0 @@
#!/usr/bin/env bash
echo -e "\n${BLD}${SUL}${GRN}Setting up ZSH...${RST}\n"
setup_zsh() {
backup "$HOME/.zshenv"
create "$HOME/.local/state/zsh/"
symlink "$DOTS/config/zsh/zshrc" "$HOME"/.zshrc
symlink "$DOTS/config/zsh/zprofile" "$HOME"/.zprofile
}
setup_zsh