#!/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