From 3c6090925bdf6e0b4039bd6d86e877bfe269b6a8 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 7 Mar 2025 15:05:06 +0900 Subject: [PATCH] adding auto download and install --- README.md | 5 +++++ auto-install.sh | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 auto-install.sh 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 +