From 5741ea4f7b5de2620969b4869f2cb9bd93a25579 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Jun 2025 23:30:51 +1000 Subject: [PATCH] install: reload hypr + spicetify init Also print prompt for noconfirm overwrite --- .gitignore | 7 +++++++ install.fish | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/.gitignore b/.gitignore index 6f43336..3ef5289 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,10 @@ /spicetify/Themes/caelestia/color.ini /btop/btop.log + +/fish/fish_variables + +/vscode/* +!/vscode/User/settings.json +!/vscode/User/keybindings.json +!/vscode/caelestia-vscode-integration/ diff --git a/install.fish b/install.fish index fd06a32..f6a24e2 100755 --- a/install.fish +++ b/install.fish @@ -45,6 +45,7 @@ function confirm-overwrite -a path if test -e $path -o -L $path # No prompt if noconfirm if set -q noconfirm + input "$path already exists. Overwrite? [Y/n]" log 'Removing...' rm -rf $path else @@ -138,6 +139,7 @@ yay -S caelestia-meta $noconfirm if confirm-overwrite $config/hypr log 'Installing hypr* configs...' ln -s (realpath hypr) $config/hypr + hyprctl reload end # Starship @@ -179,8 +181,17 @@ end # Install spicetify if set -q _flag_spotify log 'Installing spotify (spicetify)...' + + set -l has_spicetify (pacman -Q spicetify-cli 2> /dev/null) yay -S --needed spotify spicetify-cli spicetify-marketplace-bin $noconfirm + # Set permissions and init if new install + if test -z "$has_spicetify" + sudo chmod a+wr /opt/spotify + sudo chmod a+wr /opt/spotify/Apps -R + spicetify backup apply + end + # Install configs if confirm-overwrite $config/spicetify log 'Installing spicetify config...'