diff --git a/setup b/setup index a98e290..7f9e34d 100755 --- a/setup +++ b/setup @@ -32,14 +32,16 @@ if [[ -f ~/.config/platform ]]; then platform=$(cat ~/.config/platform) else read -p "Choose the configs to install, Laptop or Desktop (l/D): " platform - echo "$platform" > ~/.config/platform + echo "$platform" >~/.config/platform fi 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,27 +80,27 @@ cp -r ./config/yazi ~/.config/ cp -r ./config/zathura ~/.config/ cp ./config/lint/.indentconfig.yaml ~ - echo " => Installing yazi plugins " ya pkg upgrade -echo " +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 " + 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 " -sudo cp ./system/environment /etc/environment -sudo cp -r ./system/greetd/* /etc/greetd/ -hyprctl reload + sudo cp ./system/environment /etc/environment + sudo cp -r ./system/greetd/* /etc/greetd/ + hyprctl reload -./scripts/restart-bar + ./scripts/restart-bar +fi echo "