diff options
| author | silly <u65487754@gmail.com> | 2026-03-30 06:42:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-30 06:42:47 +0200 |
| commit | b5cb306f95c49fa1c07167285b126cf5e1e28e72 (patch) | |
| tree | 28099d8628a07fdb3d643f2295adf65f7bda9113 | |
| parent | 1da1ed4d4e235070b8291beafa337bce50a06f74 (diff) | |
Update silly.sh
| -rw-r--r-- | silly.sh | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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 |
