This commit is contained in:
Stephan Raabe 2023-08-18 14:46:10 +02:00
parent d037bc148e
commit fc83e0a87f
2 changed files with 175 additions and 0 deletions

88
2-install-hyprland.sh Executable file
View File

@ -0,0 +1,88 @@
#!/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=("waybar");
packagesYay=("hyprland-git" "swww");
# ------------------------------------------------------
# Install required packages
# ------------------------------------------------------
_installPackagesPacman "${packagesPacman[@]}";
_installPackagesYay "${packagesYay[@]}";
# ------------------------------------------------------
# Install qtile configuration
# ------------------------------------------------------
echo ""
echo "-> Install Hyprland configuration"
while true; do
read -p "Do you want to install/replace the Hyprland configuration? (Yy/Nn): " yn
case $yn in
[Yy]* )
if [ -d ~/.config/hypr/ ]; then
rm -r ~/.config/hypr/
fi
_installSymLink ~/.config/hypr ~/dotfiles/hypr/ ~/.config
break;;
[Nn]* )
echo "Installation/Replacement of Hyprland configuration skipped."
break;;
* ) echo "Please answer yes or no.";;
esac
done
# ------------------------------------------------------
# Create symbolic links
# ------------------------------------------------------
echo "-> Create symbolic links"
_installSymLink ~/.config/waybar ~/dotfiles/waybar/ ~/.config
swww init
echo "DONE!"

87
2-install-qtile.sh Executable file
View File

@ -0,0 +1,87 @@
#!/bin/bash
# ___ _____ ___ _ _____
# / _ \_ _|_ _| | | ____|
# | | | || | | || | | _|
# | |_| || | | || |___| |___
# \__\_\|_| |___|_____|_____|
#
# by Stephan Raabe (2023)
# ------------------------------------------------------
# Install Script for Qtile
# ------------------------------------------------------
# ------------------------------------------------------
# Confirm Start
# ------------------------------------------------------
source $(dirname "$0")/scripts/library.sh
clear
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=("qtile" "polybar");
# ------------------------------------------------------
# Install required packages
# ------------------------------------------------------
_installPackagesPacman "${packagesPacman[@]}";
# ------------------------------------------------------
# Install qtile configuration
# ------------------------------------------------------
echo ""
echo "-> Install Qtile configuration"
while true; do
read -p "Do you want to install/replace the Qtile configuration? (Yy/Nn): " yn
case $yn in
[Yy]* )
if [ -d ~/.config/qtile/ ]; then
rm -r ~/.config/qtile/
fi
_installSymLink ~/.config/qtile ~/dotfiles/qtile/ ~/.config
break;;
[Nn]* )
echo "Installation/Replacement of Qtile configuration skipped."
break;;
* ) echo "Please answer yes or no.";;
esac
done
# ------------------------------------------------------
# Create symbolic links
# ------------------------------------------------------
echo "-> Create symbolic links"
_installSymLink ~/.config/polybar ~/dotfiles/polybar/ ~/.config
if [ -f ~/.xinitrc ]; then
rm ~/.xinitrc
fi
ln -s ~/dotfiles/qtile/.xinitrc ~/.xinitrc
echo "DONE!"