Hyprland-dotfiles/2-install-hyprland.sh

77 lines
2.1 KiB
Bash
Raw Normal View History

2023-08-18 08:46:10 -04: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 15:21:39 -04:00
packagesPacman=(
"hyprland"
"xdg-desktop-portal-wlr"
2023-09-04 15:21:39 -04:00
"waybar"
"grim"
"slurp"
2023-09-18 13:27:05 -04:00
"swayidle"
2023-09-25 02:47:42 -04:00
"swappy"
2023-09-28 14:43:29 -04:00
"cliphist"
2023-09-04 15:21:39 -04:00
);
2023-08-18 08:46:10 -04:00
2023-09-04 15:21:39 -04:00
packagesYay=(
"swww"
"swaylock-effects"
"wlogout"
);
2023-08-18 08:46:10 -04:00
# ------------------------------------------------------
# Install required packages
# ------------------------------------------------------
_installPackagesPacman "${packagesPacman[@]}";
_installPackagesYay "${packagesYay[@]}";
2023-09-01 13:31:42 -04:00
echo ""
2023-10-17 08:22:51 -04:00
echo "DONE!"
2023-10-17 09:13:19 -04:00
echo "Update the keyboard layout and screen resolution in ~/dotfiles/hypr/hyprland.conf"
echo "Then proceed with with 3-dotfiles.sh"
2023-10-17 08:22:51 -04:00