From b46e3a0c35c54239624e508fc84c3e28f6aef857 Mon Sep 17 00:00:00 2001 From: duma799 Date: Sun, 8 Feb 2026 23:36:09 +0400 Subject: [PATCH] Add auto-installer script and curl one-liner --- README.md | 5 +++++ install.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 install.sh diff --git a/README.md b/README.md index c7ca5e4..608172c 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ Personal Hyprland configuration focused on productivity and ergonomics. ## Quick Install +```bash +curl -fsSL https://raw.githubusercontent.com/duma799/hyprduma-config/master/install.sh | bash +``` + +Or manually: ```bash git clone https://github.com/duma799/hyprduma-config.git ~/Downloads/hyprduma-config python3 ~/Downloads/hyprduma-config/install.py diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..da7bd32 --- /dev/null +++ b/install.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# HyprDuma Config - Quick Installer +# Usage: curl -fsSL https://raw.githubusercontent.com/duma799/hyprduma-config/master/install.sh | bash + +set -e + +REPO="https://github.com/duma799/hyprduma-config.git" +TMPDIR=$(mktemp -d) +trap 'rm -rf "$TMPDIR"' EXIT + +echo -e "\033[36m=> Downloading HyprDuma config...\033[0m" + +if ! command -v git &>/dev/null; then + echo -e "\033[31mError: git is not installed. Run: sudo pacman -S git\033[0m" + exit 1 +fi + +if ! command -v python3 &>/dev/null; then + echo -e "\033[31mError: python3 is not installed. Run: sudo pacman -S python\033[0m" + exit 1 +fi + +git clone --depth 1 "$REPO" "$TMPDIR/hyprduma-config" 2>/dev/null + +echo -e "\033[36m=> Launching installer...\033[0m\n" + +#