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:
parent
15eae692d7
commit
39d5da142c
1061 changed files with 26 additions and 103109 deletions
18
setup/config
18
setup/config
|
|
@ -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
|
||||
10
setup/rust
10
setup/rust
|
|
@ -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
|
||||
31
setup/themes
31
setup/themes
|
|
@ -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
|
||||
12
setup/zsh
12
setup/zsh
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue