From 04c4842b57b1297e425254cf9a24e72f0f04b5a9 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 14 Jul 2025 14:44:32 +0200 Subject: [PATCH 1/5] Updated scripts --- config/hypr/hyprland_SIMONBOX.conf | 1 + config/hypr/hyprland_STEAMBOX.conf | 3 +++ config/starship.toml | 5 ++++- update_arch.sh | 4 ++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/config/hypr/hyprland_SIMONBOX.conf b/config/hypr/hyprland_SIMONBOX.conf index e44fce5..5569f8e 100644 --- a/config/hypr/hyprland_SIMONBOX.conf +++ b/config/hypr/hyprland_SIMONBOX.conf @@ -6,3 +6,4 @@ bind = $mainMod, D, togglespecialworkspace, discord bind = $mainMod, W, togglespecialworkspace, web bind = $mainMod, A, togglespecialworkspace, ranger bind = $mainMod, T, togglespecialworkspace, timer +bind = $mainMod, G, exec, sh /media/SteamPool_2/Games/star-citizen/sc-launch.sh diff --git a/config/hypr/hyprland_STEAMBOX.conf b/config/hypr/hyprland_STEAMBOX.conf index 2601e53..c2a9398 100644 --- a/config/hypr/hyprland_STEAMBOX.conf +++ b/config/hypr/hyprland_STEAMBOX.conf @@ -1,6 +1,9 @@ exec-once = /home/cm/linuxbox/set-xr18-2ch.sh exec-once = sudo udisksctl mount -b /dev/sda1 exec-once = systemctl --user start hypridle +exec-once = cameractrls -d /dev/video0 -c auto_exposure=manual_mode,white_balance_automatic=0,gain_automatic=0,exposure=177,saturation=0,horizontal_flip=1,vertical_flip=1 exec-once = sh ~/Games/star-citizen/sc-launch.sh env = GBM_BACKEND, nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME, nvidia +bind = $mainMod, W, togglespecialworkspace, web +bind = $mainMod, G, exec, sh ~/Games/star-citizen/sc-launch.sh diff --git a/config/starship.toml b/config/starship.toml index 5ccb498..2c15071 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -1,10 +1,13 @@ add_newline = false # A minimal left prompt -format = """$directory$git_branch$git_commit$git_status$character""" +format = """$hosnamet$directory$git_branch$git_commit$git_status$character""" # # move the rest of the prompt to the right # right_format = """$git_branch $git_commit $git_status""" command_timeout = 1000 +[hostname] +style = "fg:#87afd7" + [directory] style = "fg:#87afd7" format = "[$path]($style)" diff --git a/update_arch.sh b/update_arch.sh index 00501af..cb690e0 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -303,7 +303,7 @@ fi # Install desktop utility if [ "${ROLES[DESKTOP_BASE]}" == "yes" ]; then printf -- '\033[33m Installing desktop base utilities\n\033[37m' - sudo pacman --noconfirm --needed -S feh + 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 @@ -348,7 +348,7 @@ if [ "${ROLES[GAME]}" == "yes" ]; then sudo pacman -S --noconfirm --needed wine-staging sudo pacman -S --noconfirm --needed winetricks wine-mono wine-gecko qt5-tools sudo pacman -S --noconfirm --needed steam - sudo pacman -S --noconfirm --needed gamemode gamescope + sudo pacman -S --noconfirm --needed mangohud lib32-mangohud gamemode gamescope yay --noconfirm -S --needed --aur protonup-qt protontricks yay --noconfirm -S --needed --aur lug-helper yay --noconfirm -S --needed --aur opentrack-git From 7b7422ed5767e6ac88d6fede8f439392d8aa63ad Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 20 Jul 2025 19:43:14 +0200 Subject: [PATCH 2/5] Updated scripts --- update_arch.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/update_arch.sh b/update_arch.sh index cb690e0..3c445c9 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -345,12 +345,13 @@ fi # Install game utility if [ "${ROLES[GAME]}" == "yes" ]; then printf -- '\033[33m Installing game utilities\n\033[37m' - sudo pacman -S --noconfirm --needed wine-staging - sudo pacman -S --noconfirm --needed winetricks wine-mono wine-gecko qt5-tools + sudo pacman -S --noconfirm --needed wine + sudo pacman -S --noconfirm --needed wine-mono wine-gecko qt5-tools sudo pacman -S --noconfirm --needed steam - sudo pacman -S --noconfirm --needed mangohud lib32-mangohud gamemode gamescope + sudo pacman -S --noconfirm --needed onnxruntime mangohud lib32-mangohud gamemode yay --noconfirm -S --needed --aur protonup-qt protontricks yay --noconfirm -S --needed --aur lug-helper + yay --noconfirm -S --needed --aur winetricks-git yay --noconfirm -S --needed --aur opentrack-git yay --noconfirm -S --needed --aur openmpi From 237cf622595740321c22133bab98442eaefb00c9 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 20 Jul 2025 19:48:57 +0200 Subject: [PATCH 3/5] Updated files --- config/hypr/hyprland_STEAMBOX.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hypr/hyprland_STEAMBOX.conf b/config/hypr/hyprland_STEAMBOX.conf index c2a9398..d14e252 100644 --- a/config/hypr/hyprland_STEAMBOX.conf +++ b/config/hypr/hyprland_STEAMBOX.conf @@ -1,7 +1,7 @@ exec-once = /home/cm/linuxbox/set-xr18-2ch.sh exec-once = sudo udisksctl mount -b /dev/sda1 exec-once = systemctl --user start hypridle -exec-once = cameractrls -d /dev/video0 -c auto_exposure=manual_mode,white_balance_automatic=0,gain_automatic=0,exposure=177,saturation=0,horizontal_flip=1,vertical_flip=1 +exec-once = cameractrls -d /dev/video0 -c auto_exposure=manual_mode,white_balance_automatic=0,gain_automatic=1,exposure=255,saturation=0 exec-once = sh ~/Games/star-citizen/sc-launch.sh env = GBM_BACKEND, nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME, nvidia From 2a22f5b0684f36a78afaabb16b80cdfc341a7438 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 20 Jul 2025 19:53:35 +0200 Subject: [PATCH 4/5] Updated file --- update_arch.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/update_arch.sh b/update_arch.sh index 3c445c9..96c2536 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -348,10 +348,9 @@ if [ "${ROLES[GAME]}" == "yes" ]; then sudo pacman -S --noconfirm --needed wine sudo pacman -S --noconfirm --needed wine-mono wine-gecko qt5-tools sudo pacman -S --noconfirm --needed steam - sudo pacman -S --noconfirm --needed onnxruntime mangohud lib32-mangohud gamemode + sudo pacman -S --noconfirm --needed winetricks onnxruntime mangohud lib32-mangohud gamemode yay --noconfirm -S --needed --aur protonup-qt protontricks yay --noconfirm -S --needed --aur lug-helper - yay --noconfirm -S --needed --aur winetricks-git yay --noconfirm -S --needed --aur opentrack-git yay --noconfirm -S --needed --aur openmpi From 919b4f6d6293acb32a8b7f1a879626db83cbfdce Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 21 Jul 2025 15:39:45 +0200 Subject: [PATCH 5/5] Updated scripts --- config/hypr/hyprland_STEAMBOX.conf | 2 +- update_arch.sh | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/config/hypr/hyprland_STEAMBOX.conf b/config/hypr/hyprland_STEAMBOX.conf index d14e252..e1766bd 100644 --- a/config/hypr/hyprland_STEAMBOX.conf +++ b/config/hypr/hyprland_STEAMBOX.conf @@ -2,7 +2,7 @@ exec-once = /home/cm/linuxbox/set-xr18-2ch.sh exec-once = sudo udisksctl mount -b /dev/sda1 exec-once = systemctl --user start hypridle exec-once = cameractrls -d /dev/video0 -c auto_exposure=manual_mode,white_balance_automatic=0,gain_automatic=1,exposure=255,saturation=0 -exec-once = sh ~/Games/star-citizen/sc-launch.sh +exec-once = ~/Games/opentrack/build/install/bin/opentrack -platform xcb env = GBM_BACKEND, nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME, nvidia bind = $mainMod, W, togglespecialworkspace, web diff --git a/update_arch.sh b/update_arch.sh index 96c2536..2514fff 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -351,9 +351,30 @@ if [ "${ROLES[GAME]}" == "yes" ]; then sudo pacman -S --noconfirm --needed winetricks onnxruntime mangohud lib32-mangohud gamemode yay --noconfirm -S --needed --aur protonup-qt protontricks yay --noconfirm -S --needed --aur lug-helper - yay --noconfirm -S --needed --aur opentrack-git yay --noconfirm -S --needed --aur openmpi + if ! -d ~/Games/opentrack; then + mkdir -p ~/Games + cd ~/Games + git clone https://github.com/opentrack/opentrack + cd opentrack/ + mkdir build + cd build + cmake .. + ccmake . + make + make install + echo "[Desktop Entry] +Version=3.1.0 +Type=Application +Name=Opentrack +Exec=~/Games/opentrack/build/install/bin/opentrack -platform xcb +Icon=~/Games/opentrack/contrib/cute-octopus-vector-material_15-1831.jpg +Terminal=false +StartupNotify=true" | sudo tee /usr/share/applications/opentrack.desktop >/dev/null + sudo update-desktop-database /usr/share/applications + fi + if [ "$HOSTNAME" == "SIMONBOX" ]; then printf -- '\033[33m Installing Simon specific game utilities\n\033[37m' flatpak install -y flathub org.vinegarhq.Sober