[Setup] Make it quicker for small changes
This commit is contained in:
		
							
								
								
									
										28
									
								
								setup
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								setup
									
									
									
									
									
								
							| @@ -32,14 +32,16 @@ if [[ -f ~/.config/platform ]]; then | |||||||
|     platform=$(cat ~/.config/platform) |     platform=$(cat ~/.config/platform) | ||||||
| else | else | ||||||
|     read -p "Choose the configs to install, Laptop or Desktop (l/D): " platform |     read -p "Choose the configs to install, Laptop or Desktop (l/D): " platform | ||||||
|     echo "$platform" > ~/.config/platform |     echo "$platform" >~/.config/platform | ||||||
| fi | fi | ||||||
| platform=$(echo "$platform" | tr '[:upper:]' '[:lower:]') | 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,27 +80,27 @@ 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 | ||||||
|  |  | ||||||
| echo " | if [[ "$restart" == "y" ]]; then | ||||||
|  |     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 | ||||||
| " | " | ||||||
| sudo cp ./system/environment /etc/environment |     sudo cp ./system/environment /etc/environment | ||||||
| sudo cp -r ./system/greetd/* /etc/greetd/ |     sudo cp -r ./system/greetd/* /etc/greetd/ | ||||||
| hyprctl reload |     hyprctl reload | ||||||
|  |  | ||||||
| ./scripts/restart-bar |     ./scripts/restart-bar | ||||||
|  | fi | ||||||
|  |  | ||||||
| echo " | echo " | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user