Files
dotfiles/installer/10-base-desktop.sh
T
2026-06-16 03:54:27 +00:00

22 lines
565 B
Bash
Executable File

#!/bin/sh -e
if [[ ! -x "$(command -v paru)" ]]; then
sudo pacman -S --noconfirm --needed paru || exit 1
fi
mapfile -t packages < <(grep -v '^#' "$DOTFILES_DIR/packages/sjb-desktop.packages" | grep -v '^$')
paru -S --noconfirm --needed "${packages[@]}"
# Add screen recorder based on GPU
if lspci | grep -qi 'nvidia'; then
paru -S --noconfirm --needed wf-recorder
else
paru -S --noconfirm --needed wl-screenrec
fi
if [[ -x "$(command -v systemctl)" ]]; then
sudo systemctl enable --now sddm.service
sudo systemctl enable --now udisks2.service
fi