diff options
Diffstat (limited to '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 |
