diff --git a/README.md b/README.md index e43a5d2..a36493a 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,12 @@ sudo nano /etc/apt/sources.list > Another important note for nvidia owners > If you have nvidia, by default debian is installing nouveau or open-source nvidia driver. If you want to keep the default nvidia driver installed by Debian, choose N on the if you have nvidia question. Or else you will encounter same issue as SDDM above. +## ✨ Auto clone and install +- you can use this command to automatically clone the installer and ran the script for you +```bash +sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Debian-Hyprland/main/auto-install.sh) +``` + ## ✨ to use this script > clone this repo (latest commit only) by using git. Change directory, make executable and run the script ```bash @@ -136,23 +142,6 @@ chmod +x install.sh -### 🤟 semi-unattended installation (new for Feb 2025) -- edit preset.sh to modify what packages you want. Make sure to change only with Y or N -- to use preset instead of usual `./install.sh` you can ran like this - -```bash -./install.sh --preset -``` - -- if you have nvidia you can add --nvidia argument - -```bash -./install.sh --preset --nvidia -``` - -- its called semi-unattended it is because you still have to answer some questions when installing KooL's Hyprland Dots - - #### ✨ for ZSH and OH-MY-ZSH installation > installer should auto change your default shell to zsh. However, if it does not, do this ```bash diff --git a/auto-install.sh b/auto-install.sh new file mode 100644 index 0000000..cf2fff1 --- /dev/null +++ b/auto-install.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# https://github.com/JaKooLit + +Distro="Debian-Hyprland" +Github_URL="https://github.com/JaKooLit/$Distro.git" +Distro_DIR="$HOME/$Distro" + +printf "\n%.0s" {1..1} +# Package GIT +if ! command -v git &> /dev/null +then + echo "Git not found! Installing Git..." + sudo apt update && sudo apt install -y git +fi + +printf "\n%.0s" {1..1} + +# Check if the repository already exists +if [ -d "$Distro_DIR" ]; then + echo "$Distro_DIR exists. Updating the repository..." + cd "$Distro_DIR" + git stash && git pull + chmod +x install.sh + ./install.sh +else + echo "$Distro_DIR does not exist. Cloning the repository..." + git clone --depth=1 "$Github_URL" "$Distro_DIR" + cd "$Distro_DIR" + chmod +x install.sh + ./install.sh +fi + + +