summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--silly.sh26
1 files changed, 26 insertions, 0 deletions
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