diff --git a/README.md b/README.md index 3724c0e..c0b4954 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,11 @@ https://github.com/user-attachments/assets/49bc12b2-abaf-45de-a21c-67aacd9bb872 - After installation, check [`THIS`](https://github.com/JaKooLit/Hyprland-Dots/wiki/Notes_to_remember#--for-nvidia-gpu-users) +## ✨ Auto download and install +```bash +sh <(curl -L https://github.com/JaKooLit/Arch-Hyprland/raw/main/auto-install.sh) +``` + ## ✨ to use this script - clone this repo (latest commit only) to reduce file size download by using git. Change directory, make executable and run the script diff --git a/auto-install.sh b/auto-install.sh new file mode 100644 index 0000000..5070fd6 --- /dev/null +++ b/auto-install.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# https://github.com/JaKooLit Arch-Hyprland + + +# Check if Git is installed +if ! command -v git &> /dev/null +then + echo "Git not found! Installing Git..." + sudo pacman -S --no-confirm git +fi + +# Clone the repository +echo "Cloning the repository..." +git clone --depth=1 https://github.com/JaKooLit/Arch-Hyprland.git ~/Arch-Hyprland +cd ~/Arch-Hyprland +chmod +x install.sh +./install.sh +