From 57931faeeaaf7f4dc7017df057757ff687616cae Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 12 May 2025 13:04:03 +0200 Subject: [PATCH 1/2] Updated script --- update_arch.sh | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/update_arch.sh b/update_arch.sh index 7cb74da..4e1a8f8 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -259,7 +259,6 @@ if [ "${ROLES[TERMINAL]}" == "yes" ]; then ln -sf ~/linuxbox/config/alacritty/alacritty.toml ~/.config/alacritty/alacritty.toml ln -sf ~/linuxbox/config/lazygit/config.yml ~/.config/lazygit/config.yml - nvim --headless "+MasonUpdate" +qa nvim --headless "+Lazy! sync" +qa printf -- '\033[33m Installing fzf\n\033[37m' @@ -280,7 +279,11 @@ fi # Install code utility if [ "${ROLES[CODE]}" == "yes" ]; then printf -- '\033[33m Installing code utilities\n\033[37m' - sudo pacman --noconfirm --needed -S code platformio-core + sudo pacman --noconfirm --needed -S code platformio-core + + printf -- '\033[33m Installing LSP servers\n\033[37m' + sudo pacman --noconfirm --needed -S rust-analyzer lua-language-server bash-language-server ccls vscode-html-languageserver vscode-json-languageserver marksman pyright yaml-language-server vscode-css-languageserver clang + yay --noconfirm -S --needed --aur dockerfile-language-server printf -- '\033[33m Installing Rust embedded rp2040\n\033[37m' cd ~ @@ -372,20 +375,20 @@ if [ "${ROLES[GAME]}" == "yes" ]; then yay --noconfirm -S --needed --aur openmpi if [ "$HOSTNAME" == "SIMONBOX" ]; then + printf -- '\033[33m Installing Simon specific game utilities\n\033[37m' flatpak install -y flathub org.vinegarhq.Sober 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 -if [ "${ROLES[VR]}" == "yes" ]; then - printf -- '\033[33m Installing VR utilities\n\033[37m' - sudo pacman -S --noconfirm --needed cli11 glib2-devel nlohmann-json glew - yay --noconfirm -S --needed --aur monado-vulkan-layers-git - yay --noconfirm -S --needed --aur wlx-overlay-s-git - yay --noconfirm -S --needed --aur xrgears - yay --noconfirm -S --needed --aur envision-xr-git + if [ "${ROLES[VR]}" == "yes" ]; then + printf -- '\033[33m Installing VR utilities\n\033[37m' + sudo pacman -S --noconfirm --needed cli11 glib2-devel nlohmann-json glew + yay --noconfirm -S --needed --aur monado-vulkan-layers-git + yay --noconfirm -S --needed --aur wlx-overlay-s-git + yay --noconfirm -S --needed --aur xrgears + yay --noconfirm -S --needed --aur envision-xr-git + fi fi # Install lab utility From 859a3f092125038f0747546e8b5d003363ef6397 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 12 May 2025 13:12:16 +0200 Subject: [PATCH 2/2] Updated script --- update_arch.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/update_arch.sh b/update_arch.sh index 4e1a8f8..7ddbee3 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -274,12 +274,12 @@ if [ "${ROLES[TERMINAL]}" == "yes" ]; then make -C ble.sh install if [ -d ~/ble.sh ]; then rm -rf ~/ble.sh; fi ln -sf ~/linuxbox/blerc ~/.blerc -fi - -# Install code utility -if [ "${ROLES[CODE]}" == "yes" ]; then - printf -- '\033[33m Installing code utilities\n\033[37m' - sudo pacman --noconfirm --needed -S code platformio-core +# fi +# +# # Install code utility +# if [ "${ROLES[CODE]}" == "yes" ]; then + # printf -- '\033[33m Installing code utilities\n\033[37m' + # sudo pacman --noconfirm --needed -S code platformio-core printf -- '\033[33m Installing LSP servers\n\033[37m' sudo pacman --noconfirm --needed -S rust-analyzer lua-language-server bash-language-server ccls vscode-html-languageserver vscode-json-languageserver marksman pyright yaml-language-server vscode-css-languageserver clang @@ -293,14 +293,14 @@ if [ "${ROLES[CODE]}" == "yes" ]; then mkdir -p ~/.local/bin ln -sf ~/linuxbox/pico-load.sh ~/.local/bin/pico-load - printf -- '\033[33m Installing teensy udev rules\n\033[37m' - if [ ! -f /.dockerenv ]; then - sudo rm -f /tmp/00-teensy.rules /etc/udev/rules.d/00-teensy.rules /lib/udev/rules.d/00-teensy.rules - sudo wget -O /tmp/00-teensy.rules https://www.pjrc.com/teensy/00-teensy.rules - sudo install -o root -g root -m 0664 /tmp/00-teensy.rules /lib/udev/rules.d/00-teensy.rules - sudo udevadm control --reload-rules - sudo udevadm trigger - fi + # printf -- '\033[33m Installing teensy udev rules\n\033[37m' + # if [ ! -f /.dockerenv ]; then + # sudo rm -f /tmp/00-teensy.rules /etc/udev/rules.d/00-teensy.rules /lib/udev/rules.d/00-teensy.rules + # sudo wget -O /tmp/00-teensy.rules https://www.pjrc.com/teensy/00-teensy.rules + # sudo install -o root -g root -m 0664 /tmp/00-teensy.rules /lib/udev/rules.d/00-teensy.rules + # sudo udevadm control --reload-rules + # sudo udevadm trigger + # fi printf -- '\033[33m Installing VirtualHere client\n\033[37m' cd ~