Updated script

This commit is contained in:
Christoffer Martinsson 2025-04-29 21:28:12 +02:00
parent 6ed7da5fa3
commit 2dc09ee08a

View File

@ -13,7 +13,8 @@ HOSTNAME=$(hostname | awk '{ print toupper($0) }')
GAME="no" GAME="no"
VR="no" VR="no"
DESKTOP="no" DESKTOP_BASE="no"
DESKTOP_WORK="no"
CODE="no" CODE="no"
NVIDIA_GPU="no" NVIDIA_GPU="no"
NVIDIA_1080_GPU="no" NVIDIA_1080_GPU="no"
@ -22,7 +23,8 @@ HYPERLAND="no"
KDE="no" KDE="no"
if [ "$HOSTNAME" == "CMBOX" ]; then if [ "$HOSTNAME" == "CMBOX" ]; then
DESKTOP="yes" DESKTOP_BASE="yes"
DESKTOP_WORK="yes"
CODE="yes" CODE="yes"
TERMINAL="yes" TERMINAL="yes"
HYPERLAND="yes" HYPERLAND="yes"
@ -30,13 +32,13 @@ fi
if [ "$HOSTNAME" == "STEAMBOX" ]; then if [ "$HOSTNAME" == "STEAMBOX" ]; then
GAME="yes" GAME="yes"
VR="yes" VR="yes"
DESKTOP="yes" DESKTOP_BASE="yes"
NVIDIA_GPU="yes" NVIDIA_GPU="yes"
TERMINAL="yes" TERMINAL="yes"
HYPERLAND="yes" HYPERLAND="yes"
fi fi
if [ "$HOSTNAME" == "LABBOX" ]; then if [ "$HOSTNAME" == "LABBOX" ]; then
DESKTOP="yes" DESKTOP_BASE="yes"
CODE="yes" CODE="yes"
TERMINAL="yes" TERMINAL="yes"
HYPERLAND="yes" HYPERLAND="yes"
@ -44,7 +46,7 @@ fi
if [ "$HOSTNAME" == "SIMONBOX" ]; then if [ "$HOSTNAME" == "SIMONBOX" ]; then
GAME="yes" GAME="yes"
VR="yes" VR="yes"
DESKTOP="yes" DESKTOP_BASE="yes"
NVIDIA_1080_GPU="yes" NVIDIA_1080_GPU="yes"
TERMINAL="yes" TERMINAL="yes"
KDE="yes" KDE="yes"
@ -70,8 +72,11 @@ fi
if [ "$VR" == "yes" ]; then if [ "$VR" == "yes" ]; then
printf -- 'VR, ' printf -- 'VR, '
fi fi
if [ "$DESKTOP" == "yes" ]; then if [ "$DESKTOP_BASE" == "yes" ]; then
printf -- 'DESKTOP, ' printf -- 'DESKTOP_BASE, '
fi
if [ "$DESKTOP_WORK" == "yes" ]; then
printf -- 'DESKTOP_WORK, '
fi fi
if [ "$CODE" == "yes" ]; then if [ "$CODE" == "yes" ]; then
printf -- 'CODE, ' printf -- 'CODE, '
@ -340,17 +345,11 @@ if [ "$CODE" == "yes" ]; then
fi fi
# Install desktop utility # Install desktop utility
if [ "$DESKTOP" == "yes" ]; then if [ "$DESKTOP_BASE" == "yes" ]; then
printf -- '\033[33m Installing desktop utilities\n\033[37m' printf -- '\033[33m Installing desktop base utilities\n\033[37m'
sudo pacman --noconfirm --needed -S kicad freecad feh sudo pacman --noconfirm --needed -S feh
flatpak install -y flathub io.github.equicord.equibop flatpak install -y flathub io.github.equicord.equibop
flatpak install -y flathub com.behringer.XAirEdit flatpak install -y flathub com.behringer.XAirEdit
flatpak install -y flathub org.kde.krita
flatpak install -y flathub com.prusa3d.PrusaSlicer
flatpak install -y flathub com.moonlight_stream.Moonlight
flatpak install -y flathub com.jgraph.drawio.desktop
flatpak install -y flathub org.gimp.GIMP
flatpak install -y flathub org.remmina.Remmina
yay --noconfirm -S --needed --aur brave-bin yay --noconfirm -S --needed --aur brave-bin
printf -- '\033[33m Installing NerdFonts\n\033[37m' printf -- '\033[33m Installing NerdFonts\n\033[37m'
@ -379,14 +378,28 @@ if [ "$DESKTOP" == "yes" ]; then
systemctl --user start sunshine systemctl --user start sunshine
fi fi
if [ "$DESKTOP_WORK" == "yes" ]; then
printf -- '\033[33m Installing desktop work utilities\n\033[37m'
sudo pacman --noconfirm --needed -S kicad freecad
flatpak install -y flathub org.kde.krita
flatpak install -y flathub com.prusa3d.PrusaSlicer
flatpak install -y flathub com.jgraph.drawio.desktop
flatpak install -y flathub org.gimp.GIMP
flatpak install -y flathub org.remmina.Remmina
flatpak install -y flathub com.moonlight_stream.Moonlight
fi
# Install game utility # Install game utility
if [ "$GAME" == "yes" ]; then if [ "$GAME" == "yes" ]; then
printf -- '\033[33m Installing game utilities\n\033[37m' printf -- '\033[33m Installing game utilities\n\033[37m'
sudo pacman -S --noconfirm --needed steam wine-staging winetricks wine-mono wine-gecko lutris sudo pacman -S --noconfirm --needed steam
yay --noconfirm -S --needed --aur protonup-qt protontricks yay --noconfirm -S --needed --aur protonup-qt protontricks
sudo pacman -S --noconfirm --needed wine-staging winetricks wine-mono wine-gecko
yay --noconfirm -S --needed --aur lug-helper yay --noconfirm -S --needed --aur lug-helper
yay --noconfirm -S --needed --aur opentrack-git yay --noconfirm -S --needed --aur opentrack-git
yay --noconfirm -S --needed --aur openmpi yay --noconfirm -S --needed --aur openmpi
sudo pacman -S --noconfirm --needed fluidsynth gamemode gvfs libayatana-appindicator innoextract lib32-gamemode lib32-vkd3d python-pefile python-protobuf vulkan-icd-loader vkd3d lib32-vulkan-icd-loader vulkan-tools xorg-xgamma umu-launcher
sudo pacman -S --noconfirm --needed lutris
fi fi
# Install vr utility # Install vr utility