Updated scripts

This commit is contained in:
2025-09-05 10:07:23 +02:00
parent f94060fce7
commit 9788b9d9bb
6 changed files with 304 additions and 47 deletions

View File

@@ -82,7 +82,7 @@ if pacman -Qs timeshift >/dev/null; then
fi
# Enable multilib (if applicable)
if [ "${ROLES[GAME]}" == "yes" ] || [ "${ROLES[MUSIC]}" == "yes" ]; then
if [ "${ROLES[GAME]}" == "yes" ]; then
if ! grep -q "^\[multilib\]" /etc/pacman.conf; then
printf -- '\033[33m Enabling multilib\n\033[37m'
sudo tee -a /etc/pacman.conf >/dev/null <<EOT
@@ -172,7 +172,7 @@ sudo localectl set-locale LANG=en_US.UTF-8
# Install hyprland
if [ "${ROLES[HYPERLAND]}" == "yes" ]; then
printf -- '\033[33m Installing hyprland\n\033[37m'
sudo pacman --noconfirm --needed -S nm-connection-editor usbutils plymouth dracut dunst hyprpaper hypridle hyprland hyprlock xdg-desktop-portal-hyprland polkit-gnome xorg-xhost gnome-keyring qt6ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance qt5-tools adwaita-fonts gnome-disk-utility hyprpaper tk
sudo pacman --noconfirm --needed -S wayvnc nm-connection-editor usbutils plymouth dracut dunst hyprpaper hypridle hyprland hyprlock xdg-desktop-portal-hyprland polkit-gnome xorg-xhost gnome-keyring qt6ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance qt5-tools adwaita-fonts gnome-disk-utility hyprpaper tk
yay --noconfirm -S --needed --aur adwaita-qt5-git
yay --noconfirm -S --needed --aur adwaita-qt6-git
@@ -302,34 +302,13 @@ if [ "${ROLES[DESKTOP_BASE]}" == "yes" ]; then
sudo pacman --noconfirm --needed -S cameractrls feh
flatpak install -y flathub com.discordapp.Discord
flatpak install -y flathub com.behringer.XAirEdit
flatpak install -y flathub com.moonlight_stream.Moonlight
flatpak install -y flathub com.github.vikdevelop.timer
flatpak install -y flathub io.github.efogdev.mpris-timer
yay --noconfirm -S --needed --aur brave-bin
yay --noconfirm -S --needed --aur brave-bin wlvncc
printf -- '\033[33m Installing other fonts\n\033[37m'
sudo pacman --noconfirm --needed -S noto-fonts poppler-data adobe-source-code-pro-fonts
printf -- '\033[33m Installing Sunshine\n\033[37m'
if ! grep -q "^\[lizardbyte\]" /etc/pacman.conf; then
sudo tee -a /etc/pacman.conf >/dev/null <<EOT
[lizardbyte]
SigLevel = Optional
Server = https://github.com/LizardByte/pacman-repo/releases/latest/download
EOT
sudo pacman -Sy
fi
sudo pacman --noconfirm --needed -S lizardbyte/sunshine
mkdir -p ~/.config/systemd/user
cp -f ~/linuxbox/config/systemd/user/sunshine.service ~/.config/systemd/user/sunshine.service
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
sudo systemctl daemon-reload
fi
if [ "${ROLES[DESKTOP_WORK]}" == "yes" ]; then
printf -- '\033[33m Installing desktop work utilities\n\033[37m'
sudo pacman --noconfirm --needed -S kicad freecad
@@ -341,20 +320,10 @@ fi
# Install music production utility
if [ "${ROLES[MUSIC]}" == "yes" ]; then
sudo pacman -U --noconfirm https://archive.archlinux.org/packages/w/wine-staging/wine-staging-9.21-1-x86_64.pkg.tar.zst
PKG="wine-staging"
# Check if package is already in IgnorePkg
if ! grep -q "^IgnorePkg.*\b$PKG\b" /etc/pacman.conf; then
sudo sed -i "/^#IgnorePkg/ s/^#//" /etc/pacman.conf # uncomment if commented
sudo sed -i "/^IgnorePkg/ s/$/ $PKG/" /etc/pacman.conf # append package name
echo "Added $PKG to IgnorePkg in /etc/pacman.conf"
else
echo "$PKG is already in IgnorePkg."
fi
yay -Rdd pulseaudio pulseaudio-alsa pulseaudio-jack jack2
printf -- '\033[33m Installing music utilities\n\033[37m'
sudo pacman -S --noconfirm --needed pipewire pipewire-jack pipewire-alsa pipewire-pulse gamemode
sudo pacman -S --noconfirm --needed pipewire-tools qpwgraph realtime-privileges yabridge yabridgectl
yay --noconfirm -S --needed --aur bitwig-studio
sudo pacman -S --noconfirm --needed qpwgraph realtime-privileges
flatpak install -y flathub com.bitwig.BitwigStudio
sudo usermod -a -G realtime,audio,gamemode $USER
@@ -365,8 +334,6 @@ if [ "${ROLES[MUSIC]}" == "yes" ]; then
@audio hard memlock unlimited
EOF
systemctl --user --now disable pulseaudio.{socket,service}
systemctl --user mask pulseaudio
systemctl --user --now enable pipewire{,-pulse}.{socket,service} filter-chain.service
pw-metadata -n settings 0 clock.min-quantum 128
fi