76 lines
2.1 KiB
Bash
Executable File
76 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# _ _ _ _
|
|
# | | | |_ _ _ __ _ __| | __ _ _ __ __| |
|
|
# | |_| | | | | '_ \| '__| |/ _` | '_ \ / _` |
|
|
# | _ | |_| | |_) | | | | (_| | | | | (_| |
|
|
# |_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_|
|
|
# |___/|_|
|
|
#
|
|
# by Stephan Raabe (2023)
|
|
# -----------------------------------------------------
|
|
# Install Script for Hyprland
|
|
# ------------------------------------------------------
|
|
|
|
# ------------------------------------------------------
|
|
# Confirm Start
|
|
# ------------------------------------------------------
|
|
source $(dirname "$0")/scripts/library.sh
|
|
clear
|
|
echo " _ _ _ _ "
|
|
echo " | | | |_ _ _ __ _ __| | __ _ _ __ __| | "
|
|
echo " | |_| | | | | ,_ \| ,__| |/ _\ | ,_ \ / _, | "
|
|
echo " | _ | |_| | |_) | | | | (_| | | | | (_| | "
|
|
echo " |_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| "
|
|
echo " |___/|_| "
|
|
echo " "
|
|
echo "by Stephan Raabe (2023)"
|
|
echo "------------------------------------------------------"
|
|
echo ""
|
|
|
|
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
|
|
echo ""
|
|
|
|
# ------------------------------------------------------
|
|
# Install required packages
|
|
# ------------------------------------------------------
|
|
echo ""
|
|
echo "-> Install main packages"
|
|
packagesPacman=(
|
|
"hyprland"
|
|
"xdg-desktop-portal-wlr"
|
|
"waybar"
|
|
"grim"
|
|
"slurp"
|
|
"swayidle"
|
|
"swappy"
|
|
"cliphist"
|
|
);
|
|
|
|
packagesYay=(
|
|
"swww"
|
|
"swaylock-effects"
|
|
"wlogout"
|
|
);
|
|
|
|
# ------------------------------------------------------
|
|
# Install required packages
|
|
# ------------------------------------------------------
|
|
_installPackagesPacman "${packagesPacman[@]}";
|
|
_installPackagesYay "${packagesYay[@]}";
|
|
|
|
echo ""
|
|
echo "DONE!"
|
|
echo "Please continue with 3-dotfiles.sh"
|
|
|