Files
dotfiles/installer/10-base-desktop.sh
T
gitadmin 0ae9a204aa feat(desktop): add ydotool integration for Hyprland
ydotool provides keyboard input simulation on Wayland,
required by Hyprland keybinding daemons like ydotool.
Adds user to input/render/video groups for access, and
conditionally enables the ydotool user service only
when the input group is available.
2026-07-22 23:57:52 -04:00

23 lines
613 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 usermod -aG "input,render,video" $USER
sudo systemctl enable --now sddm.service
sudo systemctl enable --now udisks2.service
fi