From b5cb306f95c49fa1c07167285b126cf5e1e28e72 Mon Sep 17 00:00:00 2001 From: silly Date: Mon, 30 Mar 2026 06:42:47 +0200 Subject: Update silly.sh --- silly.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'silly.sh') diff --git a/silly.sh b/silly.sh index 75e5c63..4d1fd34 100644 --- a/silly.sh +++ b/silly.sh @@ -5,9 +5,33 @@ set -euo pipefail REPO_URL="https://github.com/x2p3lnk7tq9z/dotfiles.git" DOTFILES_DIR="${DOTFILES_DIR:-$HOME/.dotfiles}" +PACMAN_PKGS=( + hyprland + hyprlock + xdg-desktop-portal-hyprland + kitty + rofi + dunst + btop + fastfetch + fish + imagemagick + libnotify + git + base-devel +) + +AUR_PKGS=( + zed + awww + pywal16 +) + [[ $EUID -eq 0 ]] && { echo "do not run as root"; exit 1; } command -v git &>/dev/null || { echo "git required"; exit 1; } +sudo pacman -Syu --needed --noconfirm "${PACMAN_PKGS[@]}" + if ! command -v yay &>/dev/null; then tmp=$(mktemp -d) git clone --depth=1 https://aur.archlinux.org/yay.git "$tmp/yay" @@ -15,6 +39,8 @@ if ! command -v yay &>/dev/null; then rm -rf "$tmp" fi +yay -S --needed --noconfirm "${AUR_PKGS[@]}" + if [[ -d "$DOTFILES_DIR/.git" ]]; then git -C "$DOTFILES_DIR" pull --ff-only &>/dev/null else -- cgit v1.3.1