Updated scripts

This commit is contained in:
Christoffer Martinsson 2025-04-29 14:50:08 +02:00
parent 51d2f2a7cc
commit 8f9efddba6
2 changed files with 98 additions and 50 deletions

View File

@ -179,6 +179,7 @@ bind = $mainMod, W, togglespecialworkspace, web
bind = $mainMod, F, togglespecialworkspace, fzfmenu bind = $mainMod, F, togglespecialworkspace, fzfmenu
bind = $mainMod, V, togglespecialworkspace, mixer bind = $mainMod, V, togglespecialworkspace, mixer
bind = $mainMod, A, togglespecialworkspace, ranger bind = $mainMod, A, togglespecialworkspace, ranger
bind = $mainMod, H, togglespecialworkspace, wivrn
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l bind = $mainMod, left, movefocus, l
@ -270,6 +271,11 @@ windowrulev2 = float, onworkspace:special:ranger
windowrulev2 = size 80% 80%, onworkspace:special:ranger windowrulev2 = size 80% 80%, onworkspace:special:ranger
workspace = special:ranger, on-created-empty:kitty ranger workspace = special:ranger, on-created-empty:kitty ranger
# Wivrn
windowrulev2 = float, onworkspace:special:wivrn
windowrulev2 = size 80% 80%, onworkspace:special:wivrn
workspace = special:wivrn, on-created-empty:io.github.wivrn.wivrn
# Discord # Discord
windowrulev2 = size 450 253, initialTitle:^(Discord Popout)$ windowrulev2 = size 450 253, initialTitle:^(Discord Popout)$
windowrulev2 = float, onworkspace:special:discord windowrulev2 = float, onworkspace:special:discord

View File

@ -69,6 +69,10 @@ if [ "$HOSTNAME" == "STEAMBOX" ]; then
printf -- '\033[32m \n\n***** Nvidia driver updated kernel! Please reboot and run update once more! *****\n\n\033[37m' printf -- '\033[32m \n\n***** Nvidia driver updated kernel! Please reboot and run update once more! *****\n\n\033[37m'
exit exit
fi fi
else
# Install intel drivers
printf -- '\033[33m Installing Intel drivers\n\033[37m'
sudo pacman --noconfirm --needed -S mesa intel-media-driver
fi fi
# Symlink bashrc # Symlink bashrc
@ -231,13 +235,15 @@ sudo systemctl enable virtualhereclient.service
sudo systemctl start virtualhereclient.service sudo systemctl start virtualhereclient.service
# Install teensy udev rules (only for non docker system) # Install teensy udev rules (only for non docker system)
if [ ! -f /.dockerenv ]; then if [ "$HOSTNAME" == "CMBOX" ]; then
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 printf -- '\033[33m Installing teensy udev rules\n\033[37m'
sudo wget -O /tmp/00-teensy.rules https://www.pjrc.com/teensy/00-teensy.rules sudo rm -f /tmp/00-teensy.rules /etc/udev/rules.d/00-teensy.rules /lib/udev/rules.d/00-teensy.rules
sudo install -o root -g root -m 0664 /tmp/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 udevadm control --reload-rules sudo install -o root -g root -m 0664 /tmp/00-teensy.rules /lib/udev/rules.d/00-teensy.rules
sudo udevadm trigger sudo udevadm control --reload-rules
sudo udevadm trigger
fi
fi fi
# Install neovim # Install neovim
@ -266,44 +272,70 @@ mkdir -p ~/.config/lazygit
ln -sf ~/linuxbox/config/lazygit/config.yml ~/.config/lazygit/config.yml ln -sf ~/linuxbox/config/lazygit/config.yml ~/.config/lazygit/config.yml
# Install gdu # Install gdu
printf -- '\033[33m Installing gdu\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S gdu printf -- '\033[33m Installing gdu\n\033[37m'
sudo pacman --noconfirm --needed -S gdu
fi
# Install ruby # Install ruby
printf -- '\033[33m Installing ruby\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S ruby printf -- '\033[33m Installing ruby\n\033[37m'
sudo pacman --noconfirm --needed -S ruby
fi
# Install bottom # Install bottom
printf -- '\033[33m Installing bottom\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S bottom printf -- '\033[33m Installing bottom\n\033[37m'
sudo pacman --noconfirm --needed -S bottom
fi
# Install go # Install go
printf -- '\033[33m Installing go\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S go printf -- '\033[33m Installing go\n\033[37m'
sudo pacman --noconfirm --needed -S go
fi
# Install php # Install php
printf -- '\033[33m Installing php\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S php printf -- '\033[33m Installing php\n\033[37m'
sudo pacman --noconfirm --needed -S php
fi
# Install luarocks # Install luarocks
printf -- '\033[33m Installing luarocks\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S luarocks printf -- '\033[33m Installing luarocks\n\033[37m'
sudo pacman --noconfirm --needed -S luarocks
fi
# Install composer # Install composer
printf -- '\033[33m Installing composer\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S composer printf -- '\033[33m Installing composer\n\033[37m'
sudo pacman --noconfirm --needed -S composer
fi
# Install java # Install java
printf -- '\033[33m Installing java\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S jdk-openjdk printf -- '\033[33m Installing java\n\033[37m'
sudo pacman --noconfirm --needed -S jdk-openjdk
fi
# Install julia # Install julia
printf -- '\033[33m Installing julia\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S julia printf -- '\033[33m Installing julia\n\033[37m'
sudo pacman --noconfirm --needed -S julia
fi
# Install node # Install node
printf -- '\033[33m Installing node\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S nodejs npm printf -- '\033[33m Installing node\n\033[37m'
sudo pacman --noconfirm --needed -S nodejs npm
fi
# Install neovim for node
if [ "$HOSTNAME" == "CMBOX" ]; then
printf -- '\033[33m Installing neovim for node\n\033[37m'
sudo npm install -g neovim
fi
# Install ble.sh # Install ble.sh
printf -- '\033[33m Installing ble.sh\n\033[37m' printf -- '\033[33m Installing ble.sh\n\033[37m'
@ -315,12 +347,10 @@ if [ -d ~/ble.sh ]; then rm -rf ~/ble.sh; fi
ln -sf ~/linuxbox/blerc ~/.blerc ln -sf ~/linuxbox/blerc ~/.blerc
# Install platformio # Install platformio
printf -- '\033[33m Installing platformio\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
sudo pacman --noconfirm --needed -S platformio-core printf -- '\033[33m Installing platformio\n\033[37m'
sudo pacman --noconfirm --needed -S platformio-core
# Install neovim for node fi
printf -- '\033[33m Installing neovim for node\n\033[37m'
sudo npm install -g neovim
# Install rust # Install rust
printf -- '\033[33m Installing Rust\n\033[37m' printf -- '\033[33m Installing Rust\n\033[37m'
@ -329,12 +359,14 @@ rustup update stable
rustup default stable rustup default stable
# Install rust embedded stuff # Install rust embedded stuff
printf -- '\033[33m Installing Rust embedded stuff\n\033[37m' if [ "$HOSTNAME" == "CMBOX" ]; then
cd ~ printf -- '\033[33m Installing Rust embedded stuff\n\033[37m'
rustup target add thumbv6m-none-eabi cd ~
cargo install elf2uf2-rs --locked rustup target add thumbv6m-none-eabi
cargo install probe-run cargo install elf2uf2-rs --locked
cargo install flip-link cargo install probe-run
cargo install flip-link
fi
# Install tree sitter cli # Install tree sitter cli
printf -- '\033[33m Installing tree sitter cli\n\033[37m' printf -- '\033[33m Installing tree sitter cli\n\033[37m'
@ -450,22 +482,21 @@ sudo pacman --noconfirm --needed -S timeshift
# Install sunshine # Install sunshine
printf -- '\033[33m Installing Sunshine\n\033[37m' printf -- '\033[33m Installing Sunshine\n\033[37m'
sudo pacman --noconfirm --needed -S intel-media-driver
yay --noconfirm --needed -S sunshine yay --noconfirm --needed -S sunshine
# echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | sudo tee /lib/udev/rules.d/60-sunshine.rules
mkdir -p ~/.config/systemd/user mkdir -p ~/.config/systemd/user
cp -f ~/linuxbox/config/systemd/user/sunshine.service ~/.config/systemd/user/sunshine.service cp -f ~/linuxbox/config/systemd/user/sunshine.service ~/.config/systemd/user/sunshine.service
sudo udevadm control --reload-rules sudo udevadm control --reload-rules
sudo udevadm trigger sudo udevadm trigger
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine)) sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
sudo systemctl daemon-reload sudo systemctl daemon-reload
systemctl --user enable sunshine
systemctl --user start sunshine systemctl --user start sunshine
# Install steam # Install steam
if [ "$HOSTNAME" == "STEAMBOX" ]; then if [ "$HOSTNAME" == "STEAMBOX" ]; then
printf -- '\033[33m Installing steam\n\033[37m' printf -- '\033[33m Installing steam\n\033[37m'
sudo pacman -S --noconfirm --needed steam sudo pacman -S --noconfirm --needed steam
yay --noconfirm -S --needed --aur protonup-qt yay --noconfirm -S --needed --aur protonup-qt protontricks
fi fi
# Install starcitizen # Install starcitizen
@ -482,17 +513,28 @@ if [ "$HOSTNAME" == "STEAMBOX" ]; then
yay --noconfirm -S --needed --aur openmpi yay --noconfirm -S --needed --aur openmpi
fi fi
# # Install game services # Install envision
if [ "$HOSTNAME" == "STEAMBOX" ]; then
printf -- '\033[33m Installing envision\n\033[37m'
sudo pacman -S --noconfirm --needed cli11 glib2-devel nlohmann-json
yay --noconfirm -S --needed --aur envision-xr-git
yay --noconfirm -S --needed --aur monado-vulkan-layers-git
fi
# # Install wivrn
# if [ "$HOSTNAME" == "STEAMBOX" ]; then # if [ "$HOSTNAME" == "STEAMBOX" ]; then
# printf -- '\033[33m Installing Game services\n\033[37m' # printf -- '\033[33m Installing wivrn\n\033[37m'
# # sudo systemctl enable fstrim.timer # sudo pacman -S --noconfirm --needed avahi
# sudo pacman -S --noconfirm --needed steam lutris wine-staging winetricks gamemode lib32-gamemode giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal \ # sudo systemctl enable --now avahi-daemon
# v4l-utils lib32-v4l-utils libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama \ # flatpak install flathub io.github.wivrn.wivrn
# lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader \
# lib32-vulkan-icd-loader mangohud lib32-mangohud goverlay gamescope solaar lib32-libpulse
# yay --noconfirm -S --needed --aur vkbasalt lib32-vkbasalt proton-ge-custom-bin xone-dkms-git dxvk-bin vkd3d-proton-bin
# fi # fi
# Install alvr
if [ "$HOSTNAME" == "STEAMBOX" ]; then
printf -- '\033[33m Installing alvr\n\033[37m'
yay --noconfirm -S --needed --aur alvr-nvidia
fi
# Symlink update script # Symlink update script
printf -- '\033[33m Symlinking update wrapper\n\033[37m' printf -- '\033[33m Symlinking update wrapper\n\033[37m'
mkdir -p ~/.local/bin mkdir -p ~/.local/bin