diff --git a/scripts/install_golang b/scripts/install_golang deleted file mode 100755 index 57dab51..0000000 --- a/scripts/install_golang +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash - -# --------------------------------------------------------------------------------- -# Golang install recipe -# Fetches the latest stable Go release, installs to /usr/local/go, -# then installs go-based CLI tools. -# --------------------------------------------------------------------------------- - -set -e - -# --------------------------------------------------------------------------------- -# Detect architecture -# --------------------------------------------------------------------------------- -ARCH=$(dpkg --print-architecture) -case "$ARCH" in - amd64) GO_ARCH="amd64" ;; - arm64) GO_ARCH="arm64" ;; - *) - echo "❌ Unsupported architecture: $ARCH" - exit 1 - ;; -esac - -# --------------------------------------------------------------------------------- -# Fetch latest stable Go version -# --------------------------------------------------------------------------------- -echo "🔍 Fetching latest stable Go version..." -GO_VERSION=$(curl -fsSL "https://go.dev/dl/?mode=json" | grep -o '"version":"go[^"]*"' | head -1 | grep -o 'go[0-9.]*') - -if [ -z "$GO_VERSION" ]; then - echo "❌ Failed to fetch latest Go version." - exit 1 -fi - -echo "✅ Latest Go version: $GO_VERSION" - -# --------------------------------------------------------------------------------- -# Download and install -# --------------------------------------------------------------------------------- -TARBALL="${GO_VERSION}.linux-${GO_ARCH}.tar.gz" -DOWNLOAD_URL="https://go.dev/dl/${TARBALL}" - -echo "📦 Downloading $TARBALL..." -curl -fsSL "$DOWNLOAD_URL" -o "/tmp/${TARBALL}" - -echo "📂 Installing to /usr/local/go..." -sudo rm -rf /usr/local/go -sudo tar -C /usr/local -xzf "/tmp/${TARBALL}" -rm "/tmp/${TARBALL}" - -# --------------------------------------------------------------------------------- -# Verify install -# --------------------------------------------------------------------------------- -export PATH=$PATH:/usr/local/go/bin - -echo "🔍 Verifying Go install..." -/usr/local/go/bin/go version - -# --------------------------------------------------------------------------------- -# Install Go-based CLI tools -# --------------------------------------------------------------------------------- -echo "" -echo "📦 Installing Go-based CLI tools..." - -echo " → gopls" -go install golang.org/x/tools/gopls@latest - -echo " → lazydocker" -go install github.com/jesseduffield/lazydocker@latest - -echo " → lf" -env CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest - -echo "" -echo "✅ Golang setup complete." -echo " Restart your shell or run: source ~/.config/fish/config.fish" - diff --git a/scripts/install_php b/scripts/install_php index 275d4b3..e46a7b1 100755 --- a/scripts/install_php +++ b/scripts/install_php @@ -2,25 +2,16 @@ # --------------------------------------------------------------------------------- # Golang install recipe -# Fetches the latest stable Go release, installs to /usr/local/go, -# then installs go-based CLI tools. +# Fetches the void php version +# then installs composer with php # --------------------------------------------------------------------------------- - set -e -# install the Debian 13 php version -sudo apt install php-cli php-mysql php-curl php-mbstring php-zip - -reload +# install the Void linux php version +sudo xbps-install php php-mysql php-sqlite php-ffi php-fpm php-intl php-xsl php-imagick php-gd # install/download composer -php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" -php -r "if (hash_file('sha384', 'composer-setup.php') === 'c8b085408188070d5f52bcfe4ecfbee5f727afa458b2573b8eaaf77b3419b0bf2768dc67c86944da1544f06fa544fd47') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }" -php composer-setup.php -php -r "unlink('composer-setup.php');" - -# Move composer bin -sudo mv composer.phar /usr/local/bin/composer +sudo xbps-install composer echo "" -echo "✅ PHP setup complete." +echo "✅ PHP + Composer setup complete." diff --git a/scripts/install_theme b/scripts/install_theme new file mode 100755 index 0000000..9462ae4 --- /dev/null +++ b/scripts/install_theme @@ -0,0 +1,30 @@ +#!/usr/bin/env bash +set -euo pipefail + +echo "==> Installing dependencies..." +sudo xbps-install -S sassc gtk-engine-murrine gtk+3-devel + +WORKDIR="$(mktemp -d)" +cd "$WORKDIR" + +echo "==> Cloning Qogir theme..." +git clone --depth=1 https://github.com/vinceliuice/Qogir-theme.git + +echo "==> Installing Qogir theme (dark, void icon, default square corners)..." +cd "$WORKDIR/Qogir-theme" +sudo ./install.sh -d /usr/share/themes -c dark -t default -i void + +echo "==> Installing libadwaita (GTK4) link..." +sudo ./install.sh -d /usr/share/themes -c dark -t default -i void -l + +echo "==> Cleaning up..." +cd "$HOME" +rm -rf "$WORKDIR" + +echo "==> Installed themes:" +ls "$HOME/.themes" 2>/dev/null || true + +echo "" +echo "Done. Now set in XFCE Settings:" +echo " Appearance -> Style: Qogir-Dark" +echo " Window Manager -> Theme: Qogir-Dark"