diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2023-12-02 10:41:24 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2023-12-02 10:41:24 +0900 |
| commit | 2d5bd765ac73553b59d6b9f065993dac02934ded (patch) | |
| tree | 075e09b80e6c36ec7e41884756b4b560118a5596 /copy.sh | |
| parent | 551d8ba57edc2a2124b3c9229c5771d8c75e56f6 (diff) | |
offered to download more wallpapers
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -185,13 +185,29 @@ chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" # Set executable for initial-boot.sh chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" +# adding user to input group printf " adding user to input group...\n" sudo gpasswd -a $(whoami) input 2>&1 | tee -a "$LOG" + +# Additional wallpaper +echo "$(tput setaf 6) By default only a few wallpapers are copied...$(tput sgr0)\n" +read -n1 -rep "${CAT} Would you like to download additional wallpapers? (y/n)" WALL +sleep 1 + +if [[ $WALL =~ ^[Yy]$ ]]; then + printf "${NOTE} Downloading additional wallpapers...\n" + if git clone https://github.com/JaKooLit/Wallpaper-Bank.git 2>&1 | tee -a "$LOG"; then + cp -R Wallpaper-Bank/wallpapers/* ~/Pictures/wallpapers/ + rm -rf Wallpaper-Bank # Remove cloned repository after copying wallpapers + else + echo "${ERROR} Downloading additional wallpapers failed" 2>&1 | tee -a "$LOG" + fi +fi + # initialize pywal to avoid config error on hyprland wal -i ~/Pictures/wallpapers/mecha-nostalgia.png 2>&1 | tee -a "$LOG" - printf "\n${OK} Copy Completed!\n\n\n" printf "${ORANGE} ATTENTION!!!! \n" printf "${ORANGE} YOU NEED to logout and re-login or reboot to avoid issues\n\n" |
