#!/bin/bash
# - bof - #



<<'comment'
# -  - #
# - Install wallpapers - #

bash <(curl -s https://www.education.isdevelopment.us/Arch.Ins/Software.Ins/Various.sh)

comment



# -  - #
# - installWallpapers_ - #
function installWallpapers_(){
  local Dir_="$(pwd)" \
        dBGnd_=/usr/share/backgrounds \
        dPic_=~/Pictures \
        dVar_=/Various;

  echo -e "\n\nInstalling wallpapers...\n\n";

  # -  - #
  # - Create backgrounds folder - #
  sudo mkdir -p $dBGnd_;
  sudo rm -rf $dBGnd_$dVar_;

  # -  - #
  # - Download & unzip wallpapers file - #
  cd $dPic_;
  curl -o $dPic_$dVar_.zip https://www.education.isdevelopment.us/Arch.Ins/Software.Ins/$dVar_.zip

  # -  - #
  # - Unzip wallpapers file - #
  unzip $dPic_$dVar_.zip;

  # -  - #
  # - Copy wallpapers to backgrounds - *
  sudo mv $dPic_$dVar_ $dBGnd_;
  sudo mv $dPic_/Archlinux-icon-crystal_13.png $dBGnd_;
  rm -rf $dPic_$dVar_.* $dPic_/installWallpapers.sh;

  cd $Dir_;
  echo -e "\n\nWallpapers were installed successfully...\n\n\n";
}



clear;
installWallpapers_;



#  - eof - #