60 lines
2.0 KiB
Bash
Executable File
60 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
|
|
|
|
# Set some colors for output messages
|
|
OK="$(tput setaf 2)[OK]$(tput sgr0)"
|
|
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"
|
|
NOTE="$(tput setaf 3)[NOTE]$(tput sgr0)"
|
|
INFO="$(tput setaf 4)[INFO]$(tput sgr0)"
|
|
WARN="$(tput setaf 1)[WARN]$(tput sgr0)"
|
|
CAT="$(tput setaf 6)[ACTION]$(tput sgr0)"
|
|
MAGENTA=$(tput setaf 5)
|
|
WARNING=$(tput setaf 1)
|
|
YELLOW=$(tput setaf 3)
|
|
BLUE=$(tput setaf 4)
|
|
RESET=$(tput sgr0)
|
|
|
|
|
|
# Make all scripts in the scripts directory executable
|
|
echo -e "${INFO} Making all files in the ${BLUE}scripts${RESET} directory executable..."
|
|
chmod +x ./scripts/*
|
|
|
|
printf "\n%.0s" {1..2}
|
|
|
|
while true; do
|
|
echo -e "${BLUE} Please choose an option:${RESET}"
|
|
echo -e "${YELLOW} -- 1 - Install non-git Hyprland version${RESET}"
|
|
echo -e "${YELLOW} -- 2 - Install git Hyprland version${RESET}"
|
|
echo -e "${MAGENTA} -- 3 - Quit${RESET}"
|
|
|
|
read -p "${CAT} Enter your choice [1, 2, or 3]: " choice
|
|
|
|
case $choice in
|
|
1)
|
|
printf "\n${OK} You chose non-git version of Hyprland....... executing...\n"
|
|
echo -e "${YELLOW} Uninstalling some hyprland packages first...${RESET}"
|
|
./scripts/uninstall.sh
|
|
echo -e "${NOTE} Installing non-git version of Hyprland...${RESET}\n"
|
|
./scripts/install-hyprland.sh
|
|
break
|
|
;;
|
|
2)
|
|
printf "\n${OK} You chose git version of Hyprland....... executing...\n"
|
|
echo -e "${YELLOW} Uninstalling some hyprland packages....${RESET}"
|
|
./scripts/uninstall.sh
|
|
echo -e "${NOTE} Installing git version of Hyprland...${RESET}\n"
|
|
./scripts/install-hyprland-git.sh
|
|
break
|
|
;;
|
|
3)
|
|
echo -e "${MAGENTA} You chose to cancel. Good Bye!!...${RESET}"
|
|
printf "\n%.0s" {1..2}
|
|
break
|
|
;;
|
|
*)
|
|
echo -e "\n${WARNING} There are only 3 Choices!!!! 1 or 2 or 3. Enter 1, 2, or 3.${RESET}"
|
|
;;
|
|
esac
|
|
|
|
done
|