mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 18:20:13 +01:00
Compare commits
4 Commits
9a671a4033
...
0c7acc2bdf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c7acc2bdf | ||
|
|
543c6fc478 | ||
|
|
e262c26807 | ||
|
|
9f50b85b56 |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 MiB |
@ -138,9 +138,6 @@ cd ~/Debian-Hyprland
|
|||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
```
|
```
|
||||||
<p align="center">
|
|
||||||
<img align="center" width="100%" src="https://raw.githubusercontent.com/JaKooLit/Debian-Hyprland/main/Debian-Install.png" />
|
|
||||||
|
|
||||||
|
|
||||||
#### ✨ for ZSH and OH-MY-ZSH installation
|
#### ✨ for ZSH and OH-MY-ZSH installation
|
||||||
> installer should auto change your default shell to zsh. However, if it does not, do this
|
> installer should auto change your default shell to zsh. However, if it does not, do this
|
||||||
|
|||||||
@ -1,34 +1,50 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# https://github.com/JaKooLit
|
# 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)"
|
||||||
|
ORANGE="$(tput setaf 214)"
|
||||||
|
WARNING="$(tput setaf 1)"
|
||||||
|
YELLOW="$(tput setaf 3)"
|
||||||
|
GREEN="$(tput setaf 2)"
|
||||||
|
BLUE="$(tput setaf 4)"
|
||||||
|
SKY_BLUE="$(tput setaf 6)"
|
||||||
|
RESET="$(tput sgr0)"
|
||||||
|
|
||||||
|
# Variables
|
||||||
Distro="Debian-Hyprland"
|
Distro="Debian-Hyprland"
|
||||||
Github_URL="https://github.com/JaKooLit/$Distro.git"
|
Github_URL="https://github.com/JaKooLit/$Distro.git"
|
||||||
Distro_DIR="$HOME/$Distro"
|
Distro_DIR="$HOME/$Distro"
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
# Package GIT
|
|
||||||
if ! command -v git &> /dev/null
|
if ! command -v git &> /dev/null
|
||||||
then
|
then
|
||||||
echo "Git not found! Installing Git..."
|
echo "${INFO} Git not found! ${SKY_BLUE}Installing Git...${RESET}"
|
||||||
sudo apt update && sudo apt install -y git
|
if ! sudo apt install -y git; then
|
||||||
|
echo "${ERROR} Failed to install Git. Exiting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# Check if the repository already exists
|
|
||||||
if [ -d "$Distro_DIR" ]; then
|
if [ -d "$Distro_DIR" ]; then
|
||||||
echo "$Distro_DIR exists. Updating the repository..."
|
echo "${YELLOW}$Distro_DIR exists. Updating the repository... ${RESET}"
|
||||||
cd "$Distro_DIR"
|
cd "$Distro_DIR"
|
||||||
git stash && git pull
|
git stash && git pull
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
else
|
else
|
||||||
echo "$Distro_DIR does not exist. Cloning the repository..."
|
echo "${MAGENTA}$Distro_DIR does not exist. Cloning the repository...${RESET}"
|
||||||
git clone --depth=1 "$Github_URL" "$Distro_DIR"
|
git clone --depth=1 "$Github_URL" "$Distro_DIR"
|
||||||
cd "$Distro_DIR"
|
cd "$Distro_DIR"
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -261,7 +261,7 @@ while true; do
|
|||||||
if [[ "$dots_selected" == "OFF" ]]; then
|
if [[ "$dots_selected" == "OFF" ]]; then
|
||||||
# Show a note about not selecting the "dots" option
|
# Show a note about not selecting the "dots" option
|
||||||
if ! whiptail --title "KooL Hyprland Dot Files" --yesno \
|
if ! whiptail --title "KooL Hyprland Dot Files" --yesno \
|
||||||
"❓ You have not selected to install the pre-configured KooL Hyprland dotfiles.\n\nKindly NOTE that if you proceed without Dots, Hyprland will start with default vanilla Hyprland configuration and I won't be able to give you support.\n\n🔙 Would you like to continue install without KooL Hyprland Dots or return to choices/options?" \
|
"You have not selected to install the pre-configured KooL Hyprland dotfiles.\n\nKindly NOTE that if you proceed without Dots, Hyprland will start with default vanilla Hyprland configuration and I won't be able to give you support.\n\nWould you like to continue install without KooL Hyprland Dots or return to choices/options?" \
|
||||||
--yes-button "Continue" --no-button "Return" 15 90; then
|
--yes-button "Continue" --no-button "Return" 15 90; then
|
||||||
echo "🔙 Returning to options..." | tee -a "$LOG"
|
echo "🔙 Returning to options..." | tee -a "$LOG"
|
||||||
continue
|
continue
|
||||||
@ -277,13 +277,13 @@ while true; do
|
|||||||
for option in "${options[@]}"; do
|
for option in "${options[@]}"; do
|
||||||
confirm_message+=" - $option\n"
|
confirm_message+=" - $option\n"
|
||||||
done
|
done
|
||||||
confirm_message+="\n😀 Are you happy with these choices?"
|
confirm_message+="\nAre you happy with these choices?"
|
||||||
|
|
||||||
# Confirmation prompt
|
# Confirmation prompt
|
||||||
if ! whiptail --title "Confirm Your Choices" --yesno "$(printf "%s" "$confirm_message")" 25 80; then
|
if ! whiptail --title "Confirm Your Choices" --yesno "$(printf "%s" "$confirm_message")" 25 80; then
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
echo "❌ ${SKY_BLUE}You 🫵 cancelled the confirmation${RESET}. ${YELLOW}Exiting...${RESET}" | tee -a "$LOG"
|
echo "❌ ${SKY_BLUE}You're not 🫵 happy${RESET}. ${YELLOW}Returning to options...${RESET}" | tee -a "$LOG"
|
||||||
exit 0
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "👌 ${OK} You confirmed your choices. Proceeding with ${SKY_BLUE}KooL 🇵🇭 Hyprland Installation...${RESET}" | tee -a "$LOG"
|
echo "👌 ${OK} You confirmed your choices. Proceeding with ${SKY_BLUE}KooL 🇵🇭 Hyprland Installation...${RESET}" | tee -a "$LOG"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user