mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
added auto clone and auto ran of install.sh
This commit is contained in:
parent
d9441caa7f
commit
9a671a4033
23
README.md
23
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
|
||||
<img align="center" width="100%" src="https://raw.githubusercontent.com/JaKooLit/Debian-Hyprland/main/Debian-Install.png" />
|
||||
|
||||
|
||||
### 🤟 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
|
||||
|
||||
34
auto-install.sh
Normal file
34
auto-install.sh
Normal file
@ -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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user