summaryrefslogtreecommitdiff
path: root/silly.sh
diff options
context:
space:
mode:
authorsilly <u65487754@gmail.com>2026-03-30 06:42:47 +0200
committerGitHub <noreply@github.com>2026-03-30 06:42:47 +0200
commitb5cb306f95c49fa1c07167285b126cf5e1e28e72 (patch)
tree28099d8628a07fdb3d643f2295adf65f7bda9113 /silly.sh
parent1da1ed4d4e235070b8291beafa337bce50a06f74 (diff)
Update silly.sh
Diffstat (limited to 'silly.sh')
-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