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