Updated scripts
This commit is contained in:
parent
51d2f2a7cc
commit
8f9efddba6
@ -179,6 +179,7 @@ bind = $mainMod, W, togglespecialworkspace, web
|
||||
bind = $mainMod, F, togglespecialworkspace, fzfmenu
|
||||
bind = $mainMod, V, togglespecialworkspace, mixer
|
||||
bind = $mainMod, A, togglespecialworkspace, ranger
|
||||
bind = $mainMod, H, togglespecialworkspace, wivrn
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
@ -270,6 +271,11 @@ windowrulev2 = float, onworkspace:special:ranger
|
||||
windowrulev2 = size 80% 80%, onworkspace:special: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
|
||||
windowrulev2 = size 450 253, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = float, onworkspace:special:discord
|
||||
|
||||
142
update_arch.sh
142
update_arch.sh
@ -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'
|
||||
exit
|
||||
fi
|
||||
else
|
||||
# Install intel drivers
|
||||
printf -- '\033[33m Installing Intel drivers\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S mesa intel-media-driver
|
||||
fi
|
||||
|
||||
# Symlink bashrc
|
||||
@ -231,13 +235,15 @@ sudo systemctl enable virtualhereclient.service
|
||||
sudo systemctl start virtualhereclient.service
|
||||
|
||||
# Install teensy udev rules (only for non docker system)
|
||||
if [ ! -f /.dockerenv ]; then
|
||||
printf -- '\033[33m Installing teensy udev rules\n\033[37m'
|
||||
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
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
if [ ! -f /.dockerenv ]; then
|
||||
printf -- '\033[33m Installing teensy udev rules\n\033[37m'
|
||||
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
|
||||
fi
|
||||
|
||||
# Install neovim
|
||||
@ -266,44 +272,70 @@ mkdir -p ~/.config/lazygit
|
||||
ln -sf ~/linuxbox/config/lazygit/config.yml ~/.config/lazygit/config.yml
|
||||
|
||||
# Install gdu
|
||||
printf -- '\033[33m Installing gdu\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S gdu
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing gdu\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S gdu
|
||||
fi
|
||||
|
||||
# Install ruby
|
||||
printf -- '\033[33m Installing ruby\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S ruby
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing ruby\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S ruby
|
||||
fi
|
||||
|
||||
# Install bottom
|
||||
printf -- '\033[33m Installing bottom\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S bottom
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing bottom\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S bottom
|
||||
fi
|
||||
|
||||
# Install go
|
||||
printf -- '\033[33m Installing go\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S go
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing go\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S go
|
||||
fi
|
||||
|
||||
# Install php
|
||||
printf -- '\033[33m Installing php\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S php
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing php\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S php
|
||||
fi
|
||||
|
||||
# Install luarocks
|
||||
printf -- '\033[33m Installing luarocks\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S luarocks
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing luarocks\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S luarocks
|
||||
fi
|
||||
|
||||
# Install composer
|
||||
printf -- '\033[33m Installing composer\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S composer
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing composer\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S composer
|
||||
fi
|
||||
|
||||
# Install java
|
||||
printf -- '\033[33m Installing java\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S jdk-openjdk
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing java\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S jdk-openjdk
|
||||
fi
|
||||
|
||||
# Install julia
|
||||
printf -- '\033[33m Installing julia\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S julia
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing julia\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S julia
|
||||
fi
|
||||
|
||||
# Install node
|
||||
printf -- '\033[33m Installing node\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S nodejs npm
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
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
|
||||
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
|
||||
|
||||
# Install platformio
|
||||
printf -- '\033[33m Installing platformio\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S platformio-core
|
||||
|
||||
# Install neovim for node
|
||||
printf -- '\033[33m Installing neovim for node\n\033[37m'
|
||||
sudo npm install -g neovim
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing platformio\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S platformio-core
|
||||
fi
|
||||
|
||||
# Install rust
|
||||
printf -- '\033[33m Installing Rust\n\033[37m'
|
||||
@ -329,12 +359,14 @@ rustup update stable
|
||||
rustup default stable
|
||||
|
||||
# Install rust embedded stuff
|
||||
printf -- '\033[33m Installing Rust embedded stuff\n\033[37m'
|
||||
cd ~
|
||||
rustup target add thumbv6m-none-eabi
|
||||
cargo install elf2uf2-rs --locked
|
||||
cargo install probe-run
|
||||
cargo install flip-link
|
||||
if [ "$HOSTNAME" == "CMBOX" ]; then
|
||||
printf -- '\033[33m Installing Rust embedded stuff\n\033[37m'
|
||||
cd ~
|
||||
rustup target add thumbv6m-none-eabi
|
||||
cargo install elf2uf2-rs --locked
|
||||
cargo install probe-run
|
||||
cargo install flip-link
|
||||
fi
|
||||
|
||||
# Install tree sitter cli
|
||||
printf -- '\033[33m Installing tree sitter cli\n\033[37m'
|
||||
@ -450,22 +482,21 @@ sudo pacman --noconfirm --needed -S timeshift
|
||||
|
||||
# Install sunshine
|
||||
printf -- '\033[33m Installing Sunshine\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S intel-media-driver
|
||||
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
|
||||
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
|
||||
systemctl --user enable sunshine
|
||||
systemctl --user start sunshine
|
||||
|
||||
# Install steam
|
||||
if [ "$HOSTNAME" == "STEAMBOX" ]; then
|
||||
printf -- '\033[33m Installing steam\n\033[37m'
|
||||
sudo pacman -S --noconfirm --needed steam
|
||||
yay --noconfirm -S --needed --aur protonup-qt
|
||||
yay --noconfirm -S --needed --aur protonup-qt protontricks
|
||||
fi
|
||||
|
||||
# Install starcitizen
|
||||
@ -482,17 +513,28 @@ if [ "$HOSTNAME" == "STEAMBOX" ]; then
|
||||
yay --noconfirm -S --needed --aur openmpi
|
||||
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
|
||||
# printf -- '\033[33m Installing Game services\n\033[37m'
|
||||
# # sudo systemctl enable fstrim.timer
|
||||
# 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 \
|
||||
# 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 \
|
||||
# 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
|
||||
# printf -- '\033[33m Installing wivrn\n\033[37m'
|
||||
# sudo pacman -S --noconfirm --needed avahi
|
||||
# sudo systemctl enable --now avahi-daemon
|
||||
# flatpak install flathub io.github.wivrn.wivrn
|
||||
# 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
|
||||
printf -- '\033[33m Symlinking update wrapper\n\033[37m'
|
||||
mkdir -p ~/.local/bin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user