hyprland-dotfiles/2-install-hyprland.sh

72 lines
2.0 KiB
Bash
Raw Permalink Normal View History

2023-08-18 12:46:10 +00:00
#!/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"
2023-09-04 19:21:39 +00:00
packagesPacman=(
"hyprland"
"xdg-desktop-portal-hyprland"
"waybar"
"grim"
"slurp"
2023-09-18 17:27:05 +00:00
"swayidle"
2023-09-04 19:21:39 +00:00
);
2023-08-18 12:46:10 +00:00
2023-09-04 19:21:39 +00:00
packagesYay=(
"swww"
"swaylock-effects"
"wlogout"
);
2023-08-18 12:46:10 +00:00
# ------------------------------------------------------
# Install required packages
# ------------------------------------------------------
_installPackagesPacman "${packagesPacman[@]}";
_installPackagesYay "${packagesYay[@]}";
2023-09-01 17:31:42 +00:00
echo ""
2023-09-05 18:20:56 +00:00
echo "DONE! Please reboot your system!"