Add auto-installer script and curl one-liner

This commit is contained in:
duma799
2026-02-08 23:36:09 +04:00
committed by duma
parent b8f14eaac5
commit b46e3a0c35
2 changed files with 34 additions and 0 deletions
+5
View File
@@ -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
Executable
+29
View File
@@ -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"
# </dev/tty reconnects stdin to the terminal so interactive prompts work
# even when this script is piped from curl
python3 "$TMPDIR/hyprduma-config/install.py" </dev/tty