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.
23 lines
613 B
Bash
Executable File
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
|