From 12f0ee12755097835e3098a63fe98414a32d2800 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 24 Nov 2024 14:35:24 +0100 Subject: [PATCH] Update update.sh --- update.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index feb3cc7..f6476f3 100755 --- a/update.sh +++ b/update.sh @@ -57,7 +57,7 @@ elif [ "$OS" == "Arch Linux" ]; then cd ~ if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi fi - sudo pacman --noconfirm --needed -S waybar hyprland pipewire git base-devel cmake gawk wget gettext unzip curl tmux btop ncdu ranger qt5ct qt6ct gnome-themes-extra + sudo pacman --noconfirm --needed -S waybar hyprland hyprlock greetd pipewire git base-devel cmake gawk wget gettext unzip curl tmux btop ncdu ranger qt5ct qt6ct gnome-themes-extra yay --noconfirm -S --needed --aur adwaita-qt5-git yay --noconfirm -S --needed --aur adwaita-qt6-git @@ -450,12 +450,23 @@ if [ "$DESKTOP" == "yes" ]; then fi # Install timeshift - printf -- '\033[33m timeshift fd\n\033[37m' + printf -- '\033[33m Installing Timeshift\n\033[37m' if [ "$OS" == "Ubuntu" ]; then sudo apt install -y timeshift elif [ "$OS" == "Arch Linux" ]; then sudo pacman --noconfirm --needed -S timeshift fi + + # Install sunshine + printf -- '\033[33m Installing Sunshine\n\033[37m' + if [ "$OS" == "Arch Linux" ]; then + yay --noconfirm --needed -S sunshine + echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/60-sunshine.rules + sudo udevadm control --reload-rules + sudo udevadm trigger + sudo modprobe uinput + sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine)) + fi fi