[Setup] Make it quicker for small changes

This commit is contained in:
2025-09-12 11:49:34 +02:00
parent 088562cd53
commit 823a8d8fbc

8
setup
View File

@@ -39,7 +39,9 @@ platform=$(echo "$platform" | tr '[:upper:]' '[:lower:]')
# Get user preference for regenerating the styling
regen=""
read -p "Would you like to regenerate styling? (y/N) " regen
restart=""
if [[ "$regen" == "y" ]]; then
restart="y"
cd build
node build.js
if [ $? -ne 0 ]; then
@@ -47,6 +49,8 @@ if [[ "$regen" == "y" ]]; then
exit 130
fi
cd ..
else
read -p "Apply full config? (y/N) " restart
fi
echo "=> Moving configs to correct destinations"
@@ -76,19 +80,18 @@ cp -r ./config/yazi ~/.config/
cp -r ./config/zathura ~/.config/
cp ./config/lint/.indentconfig.yaml ~
echo "
=> Installing yazi plugins
"
ya pkg upgrade
if [[ "$restart" == "y" ]]; then
echo "
=> Installing GTK Theme
"
sudo rm -rf /usr/share/themes/Adaptive-Theme/
sudo mkdir /usr/share/themes/Adaptive-Theme/
sudo cp -r ./gtk-theme/dist/* /usr/share/themes/Adaptive-Theme/
echo "
=> Installing System Configs
"
@@ -97,6 +100,7 @@ sudo cp -r ./system/greetd/* /etc/greetd/
hyprctl reload
./scripts/restart-bar
fi
echo "