Browse Source

Merge pull request #70 from JaKooLit/development

tweaked copy.sh
pull/71/head
Ja.KooLit 2 years ago committed by GitHub
parent
commit
b7fb294dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 44
      copy.sh

44
copy.sh

@ -178,20 +178,38 @@ chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG"
chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG"
printf "\n%.0s" {1..3} printf "\n%.0s" {1..3}
# Additional wallpaper
# additional wallpapers
echo "$(tput setaf 6) By default only a few wallpapers are copied...$(tput sgr0)" echo "$(tput setaf 6) By default only a few wallpapers are copied...$(tput sgr0)"
read -n1 -rep "${CAT} Would you like to download additional wallpapers? (y/n)" WALL printf "\n%.0s" {1..2}
sleep 1
while true; do
if [[ $WALL =~ ^[Yy]$ ]]; then read -rp "${CAT} Would you like to download additional wallpapers? (y/n)" WALL
printf "${NOTE} Downloading additional wallpapers...\n" case $WALL in
if git clone https://github.com/JaKooLit/Wallpaper-Bank.git 2>&1 | tee -a "$LOG"; then [Yy])
cp -R Wallpaper-Bank/wallpapers/* ~/Pictures/wallpapers/ echo "${NOTE} Downloading additional wallpapers..."
rm -rf Wallpaper-Bank # Remove cloned repository after copying wallpapers if git clone https://github.com/JaKooLit/Wallpaper-Bank.git 2>&1 | tee -a "$LOG"; then
else if cp -R Wallpaper-Bank/wallpapers/* ~/Pictures/wallpapers/; then 2>&1 | tee -a "$LOG"
echo "${ERROR} Downloading additional wallpapers failed" 2>&1 | tee -a "$LOG" rm -rf Wallpaper-Bank 2>&1 | tee -a "$LOG" # Remove cloned repository after copying wallpapers
fi break
fi else
echo "${ERROR} Copying wallpapers failed" 2>&1 | tee -a "$LOG"
fi
else
echo "${ERROR} Downloading additional wallpapers failed" 2>&1 | tee -a "$LOG"
fi
;;
[Nn])
echo "You chose not to download additional wallpapers." 2>&1 | tee -a "$LOG"
break
;;
*)
echo "Please enter 'y' or 'n' to proceed."
;;
esac
done
printf "\n%.0s" {1..3}
# Detect machine type and set Waybar configurations accordingly, logging the output # Detect machine type and set Waybar configurations accordingly, logging the output
if hostnamectl | grep -q 'Chassis: desktop'; then if hostnamectl | grep -q 'Chassis: desktop'; then

Loading…
Cancel
Save