diff --git a/auto-install.sh b/auto-install.sh index f42edc0..3bb8e27 100755 --- a/auto-install.sh +++ b/auto-install.sh @@ -250,7 +250,23 @@ echo "-----" printf "\n%.0s" {1..3} # cloning hyprland dotiles to home folder -# TODO +echo "${NOTE} downloading and installing hyprland-dotfiles..." +if [ -d ~/hyprland-dotfiles ]; then + cd ~/hyprland-dotfiles + git stash + git pull + git stash apply + chmod +x copy.sh + ./copy.sh +else + if git clone --depth 1 https://g.r-io.lu/shynd/hyprland-dotfiles ~/hyprland-dotfiles; then + cd ~/hyprland-dotfiles || exit 1 + chmod +x copy.sh + ./copy.sh + else + echo -e "${ERROR} could not download hyprland-dotfiles!" + fi +fi # return to nixos-config directory cd ~/nixos-config