2023-09-04 15:44:31 -04:00
|
|
|
#/bin/bash
|
2023-09-04 15:21:39 -04:00
|
|
|
# ___ _ _ _
|
|
|
|
# |_ _|_ __ ___| |_ __ _| | |
|
|
|
|
# | || '_ \/ __| __/ _` | | |
|
|
|
|
# | || | | \__ \ || (_| | | |
|
|
|
|
# |___|_| |_|___/\__\__,_|_|_|
|
|
|
|
#
|
|
|
|
# by Stephan Raabe (2023)
|
|
|
|
# -----------------------------------------------------
|
|
|
|
# Install Script for required packages
|
2023-02-17 11:11:48 -05:00
|
|
|
# ------------------------------------------------------
|
2023-08-17 14:56:53 -04:00
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Load Library
|
|
|
|
# ------------------------------------------------------
|
|
|
|
source $(dirname "$0")/scripts/library.sh
|
2023-04-12 05:36:57 -04:00
|
|
|
clear
|
2023-09-04 15:21:39 -04:00
|
|
|
echo " ___ _ _ _ "
|
|
|
|
echo " |_ _|_ __ ___| |_ __ _| | | "
|
|
|
|
echo " | || _ \/ __| __/ _ | | | "
|
|
|
|
echo " | || | | \__ \ || (_| | | | "
|
|
|
|
echo " |___|_| |_|___/\__\__,_|_|_| "
|
|
|
|
echo " "
|
2023-04-12 06:27:35 -04:00
|
|
|
echo "by Stephan Raabe (2023)"
|
|
|
|
echo "-------------------------------------"
|
|
|
|
echo ""
|
2023-08-14 04:36:46 -04:00
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Check if yay is installed
|
|
|
|
# ------------------------------------------------------
|
|
|
|
if sudo pacman -Qs yay > /dev/null ; then
|
2023-08-15 04:02:31 -04:00
|
|
|
echo "yay is installed. You can proceed with the installation"
|
2023-08-14 04:36:46 -04:00
|
|
|
else
|
2023-08-15 04:02:31 -04:00
|
|
|
echo "yay is not installed. Will be installed now!"
|
|
|
|
git clone https://aur.archlinux.org/yay-git.git ~/yay-git
|
|
|
|
cd ~/yay-git
|
|
|
|
makepkg -si
|
2023-08-15 04:06:09 -04:00
|
|
|
cd ~/dotfiles/
|
2023-09-06 05:04:16 -04:00
|
|
|
clear
|
|
|
|
echo "yay has been installed successfully."
|
|
|
|
echo ""
|
|
|
|
echo " ___ _ _ _ "
|
|
|
|
echo " |_ _|_ __ ___| |_ __ _| | | "
|
|
|
|
echo " | || _ \/ __| __/ _ | | | "
|
|
|
|
echo " | || | | \__ \ || (_| | | | "
|
|
|
|
echo " |___|_| |_|___/\__\__,_|_|_| "
|
|
|
|
echo " "
|
|
|
|
echo "by Stephan Raabe (2023)"
|
|
|
|
echo "-------------------------------------"
|
|
|
|
echo ""
|
2023-08-14 04:36:46 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Confirm Start
|
|
|
|
# ------------------------------------------------------
|
2023-09-06 05:04:16 -04:00
|
|
|
|
2023-04-12 06:27:35 -04:00
|
|
|
while true; do
|
|
|
|
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
|
|
|
|
case $yn in
|
|
|
|
[Yy]* )
|
|
|
|
echo "Installation started."
|
|
|
|
break;;
|
|
|
|
[Nn]* )
|
|
|
|
exit;
|
|
|
|
break;;
|
|
|
|
* ) echo "Please answer yes or no.";;
|
|
|
|
esac
|
|
|
|
done
|
2023-02-17 11:11:48 -05:00
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install required packages
|
|
|
|
# ------------------------------------------------------
|
2023-04-12 05:36:57 -04:00
|
|
|
echo ""
|
2023-02-17 11:11:48 -05:00
|
|
|
echo "-> Install main packages"
|
2023-04-12 05:36:57 -04:00
|
|
|
|
2023-09-04 15:21:39 -04:00
|
|
|
packagesPacman=(
|
2023-09-12 09:13:41 -04:00
|
|
|
"pacman-contrib"
|
2023-09-04 15:21:39 -04:00
|
|
|
"alacritty"
|
|
|
|
"rofi"
|
|
|
|
"chromium"
|
|
|
|
"nitrogen"
|
|
|
|
"dunst"
|
|
|
|
"starship"
|
|
|
|
"neovim"
|
|
|
|
"mpv"
|
|
|
|
"freerdp"
|
|
|
|
"xfce4-power-manager"
|
|
|
|
"thunar"
|
|
|
|
"mousepad"
|
|
|
|
"ttf-font-awesome"
|
|
|
|
"ttf-fira-sans"
|
|
|
|
"ttf-fira-code"
|
|
|
|
"ttf-firacode-nerd"
|
|
|
|
"figlet"
|
|
|
|
"vlc"
|
|
|
|
"exa"
|
|
|
|
"python-pip"
|
|
|
|
"python-psutil"
|
|
|
|
"python-rich"
|
|
|
|
"python-click"
|
|
|
|
"xdg-desktop-portal-gtk"
|
|
|
|
"pavucontrol"
|
|
|
|
"tumbler"
|
|
|
|
"xautolock"
|
|
|
|
"blueman"
|
2023-10-09 04:05:43 -04:00
|
|
|
"sddm"
|
2023-10-12 07:23:55 -04:00
|
|
|
"papirus-icon-theme"
|
2023-09-04 15:21:39 -04:00
|
|
|
);
|
2023-04-12 05:36:57 -04:00
|
|
|
|
2023-09-04 15:21:39 -04:00
|
|
|
packagesYay=(
|
|
|
|
"brave-bin"
|
|
|
|
"pfetch"
|
|
|
|
"bibata-cursor-theme"
|
|
|
|
"trizen"
|
2023-10-10 10:55:21 -04:00
|
|
|
"sddm-sugar-dark"
|
2023-09-04 15:21:39 -04:00
|
|
|
);
|
2023-07-28 03:55:22 -04:00
|
|
|
|
2023-02-17 11:11:48 -05:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install required packages
|
|
|
|
# ------------------------------------------------------
|
2023-04-12 05:36:57 -04:00
|
|
|
_installPackagesPacman "${packagesPacman[@]}";
|
|
|
|
_installPackagesYay "${packagesYay[@]}";
|
2023-03-15 05:13:45 -04:00
|
|
|
|
2023-08-19 05:21:42 -04:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install pywal
|
|
|
|
# ------------------------------------------------------
|
2023-04-13 09:18:36 -04:00
|
|
|
if [ -f /usr/bin/wal ]; then
|
|
|
|
echo "pywal already installed."
|
|
|
|
else
|
|
|
|
yay --noconfirm -S pywal
|
|
|
|
fi
|
2023-04-12 09:25:19 -04:00
|
|
|
|
2023-08-28 07:33:53 -04:00
|
|
|
clear
|
|
|
|
|
2023-04-12 07:33:44 -04:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install .bashrc
|
|
|
|
# ------------------------------------------------------
|
|
|
|
echo ""
|
|
|
|
echo "-> Install .bashrc"
|
2023-04-13 04:11:34 -04:00
|
|
|
|
2023-09-04 16:30:27 -04:00
|
|
|
_installSymLink .bashrc ~/.bashrc ~/dotfiles/.bashrc ~/.bashrc
|
2023-02-17 11:11:48 -05:00
|
|
|
|
2023-04-04 05:22:52 -04:00
|
|
|
# ------------------------------------------------------
|
2023-10-17 08:22:51 -04:00
|
|
|
# Install sddm display manager
|
2023-04-04 05:22:52 -04:00
|
|
|
# ------------------------------------------------------
|
2023-04-12 05:36:57 -04:00
|
|
|
echo ""
|
2023-10-17 08:22:51 -04:00
|
|
|
echo "-> Install sddm display manager"
|
2023-04-12 06:27:35 -04:00
|
|
|
while true; do
|
|
|
|
read -p "Do you want to install the custom login promt? (Yy/Nn): " yn
|
|
|
|
case $yn in
|
|
|
|
[Yy]* )
|
2023-10-17 08:22:51 -04:00
|
|
|
sudo systemctl enable sddm.service
|
2023-04-12 06:27:35 -04:00
|
|
|
break;;
|
|
|
|
[Nn]* )
|
2023-10-17 08:22:51 -04:00
|
|
|
echo "sddm installation skipped."
|
2023-04-12 06:27:35 -04:00
|
|
|
break;;
|
|
|
|
* ) echo "Please answer yes or no.";;
|
|
|
|
esac
|
|
|
|
done
|
2023-04-04 05:22:52 -04:00
|
|
|
|
2023-04-13 10:41:22 -04:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install wallpapers
|
|
|
|
# ------------------------------------------------------
|
|
|
|
echo ""
|
|
|
|
echo "-> Install wallapers"
|
|
|
|
while true; do
|
2023-10-17 08:22:51 -04:00
|
|
|
read -p "Do you want to clone the wallpapers? If not, the script will install 3 default wallpapers to ~/wallpaper/ (Yy/Nn): " yn
|
2023-04-13 10:41:22 -04:00
|
|
|
case $yn in
|
|
|
|
[Yy]* )
|
|
|
|
if [ -d ~/wallpaper/ ]; then
|
|
|
|
echo "wallpaper folder already exists."
|
|
|
|
else
|
|
|
|
git clone https://gitlab.com/stephan-raabe/wallpaper.git ~/wallpaper
|
|
|
|
echo "wallpaper installed."
|
|
|
|
fi
|
|
|
|
echo "Wallpaper installed."
|
|
|
|
break;;
|
|
|
|
[Nn]* )
|
|
|
|
if [ -d ~/wallpaper/ ]; then
|
|
|
|
echo "wallpaper folder already exists."
|
|
|
|
else
|
|
|
|
mkdir ~/wallpaper
|
|
|
|
fi
|
2023-09-13 11:04:22 -04:00
|
|
|
cp ~/dotfiles/wallpapers/* ~/wallpaper
|
2023-10-17 08:22:51 -04:00
|
|
|
echo "Default wallpapers installed."
|
2023-04-13 10:41:22 -04:00
|
|
|
break;;
|
|
|
|
* ) echo "Please answer yes or no.";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Init pywal
|
|
|
|
# ------------------------------------------------------
|
|
|
|
echo ""
|
|
|
|
echo "-> Init pywal"
|
2023-09-13 11:04:22 -04:00
|
|
|
wal -i ~/dotfiles/wallpapers/default.jpg
|
2023-04-13 10:41:22 -04:00
|
|
|
echo "pywal initiated."
|
|
|
|
|
2023-10-10 10:55:21 -04:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Copy default wallpaper to .cache
|
|
|
|
# ------------------------------------------------------
|
|
|
|
echo ""
|
|
|
|
echo "-> Copy default wallpaper to .cache"
|
|
|
|
cp ~/dotfiles/wallpapers/default.jpg ~/.cache/current_wallpaper.jpg
|
|
|
|
echo "default wallpaper copied."
|
|
|
|
|
2023-02-17 11:11:48 -05:00
|
|
|
# ------------------------------------------------------
|
2023-04-12 06:27:35 -04:00
|
|
|
# DONE
|
2023-02-17 11:11:48 -05:00
|
|
|
# ------------------------------------------------------
|
2023-04-13 12:04:04 -04:00
|
|
|
clear
|
2023-10-17 08:22:51 -04:00
|
|
|
echo "DONE!"
|
|
|
|
echo "Please continue with 2-install-hyprland.sh and/or 2-install-qtile.sh"
|