mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-20 15:40:35 +00:00
feat: Eliminate Steam Download Speed Fix Game Mode Startup Video ujust commands, these are now handled by the bazzite-steam wrapper.
This commit is contained in:
parent
79086c1378
commit
373a73da82
@ -50,16 +50,6 @@ screens:
|
||||
default: true
|
||||
packages:
|
||||
- Hide GRUB: sudo -A ujust configure-grub hide
|
||||
Install Game Mode Startup Video:
|
||||
description: Adds a Bazzite themed startup video for Steam's game mode.
|
||||
default: true
|
||||
packages:
|
||||
- Install Video: ujust install-gamemode-video
|
||||
Fix Steam Download Speed:
|
||||
description: Adds a config file that fixes download speed under Steam for Linux.
|
||||
default: true
|
||||
packages:
|
||||
- Fix Download Speed: ujust fix-steam-download-speed
|
||||
Oversteer:
|
||||
description: Application to control supported steering wheels
|
||||
default: false
|
||||
|
@ -4,12 +4,32 @@ IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||
IMAGE_NAME=$(jq -r '."image-name"' < $IMAGE_INFO)
|
||||
|
||||
DECK_OPTION=""
|
||||
# If Steam has been launched before we can safely launch with -steamdeck
|
||||
# to maintain the gamemode update branch
|
||||
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
|
||||
if [ -f $HOME/.local/share/Steam/ubuntu12_32/steamui.so ]; then
|
||||
|
||||
if [ -f $HOME/.local/share/Steam/ubuntu12_32/steamui.so ]; then
|
||||
# If Steam has been launched before we can safely launch with -steamdeck
|
||||
# to maintain the gamemode update branch
|
||||
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
|
||||
DECK_OPTION="-steamdeck"
|
||||
fi
|
||||
|
||||
# Apply Steam Download Speed Fix if not already applied
|
||||
if [ ! -f $HOME/.local/share/Steam/steam_dev.cfg ]; then
|
||||
bash -c 'printf "@nClientDownloadEnableHTTP2PlatformLinux 0\n@fDownloadRateImprovementToAddAnotherConnection 1.0\n" > $HOME/.local/share/Steam/steam_dev.cfg'
|
||||
fi
|
||||
|
||||
# Install Bazzite's Steam Game Mode Startup & Suspend Videos
|
||||
mkdir -p $HOME/.local/share/Steam/config/uioverrides/movie
|
||||
if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm ]; then
|
||||
cp /usr/share/ublue-os/bazzite/bazzite.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
|
||||
fi
|
||||
|
||||
if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm ]; then
|
||||
cp /usr/share/ublue-os/bazzite/bazzite-suspend.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
|
||||
fi
|
||||
|
||||
if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm ]; then
|
||||
cp /usr/share/ublue-os/bazzite/bazzite-suspend.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
|
||||
fi
|
||||
fi
|
||||
|
||||
switcheroo_state="$(switcherooctl list)"
|
||||
|
@ -22,16 +22,6 @@ screens:
|
||||
default: true
|
||||
packages:
|
||||
- Set input group: sudo -A ujust add-user-to-input-group
|
||||
Install Big Picture Mode Startup Video:
|
||||
description: Adds a Bazzite themed startup video for Steam's Big Picture Mode.
|
||||
default: true
|
||||
packages:
|
||||
- Install Video: ujust install-gamemode-video
|
||||
Fix Steam Download Speed:
|
||||
description: Adds a config file that fixes download speed under Steam for Linux.
|
||||
default: true
|
||||
packages:
|
||||
- Fix Download Speed: ujust fix-steam-download-speed
|
||||
Sunshine:
|
||||
description: A self-hosted game stream host for Moonlight
|
||||
default: false
|
||||
|
@ -30,16 +30,6 @@ _install-system-flatpaks:
|
||||
FLATPAK_LIST="$(curl https://raw.githubusercontent.com/ublue-os/bazzite/main/installer/${FLATPAKS} | tr '\n' ' ')"
|
||||
flatpak --system -y install --or-update ${FLATPAK_LIST}
|
||||
|
||||
# Install Bazzite's Steam Game Mode Startup & Suspend Videos
|
||||
install-gamemode-video:
|
||||
mkdir -p $HOME/.local/share/Steam/config/uioverrides/movies
|
||||
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
|
||||
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
|
||||
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
|
||||
cp /usr/share/ublue-os/bazzite/bazzite.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
|
||||
cp /usr/share/ublue-os/bazzite/bazzite-suspend.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
|
||||
cp /usr/share/ublue-os/bazzite/bazzite-suspend.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
|
||||
|
||||
# Force-enable AMD pstate
|
||||
_pstate-force-enable:
|
||||
rpm-ostree kargs --append-if-missing=amd_pstate=active
|
||||
|
@ -1,11 +1,5 @@
|
||||
# vim: set ft=make :
|
||||
|
||||
# Fix the default Steam config to improve download speeds
|
||||
fix-steam-download-speed:
|
||||
mkdir -p $HOME/.local/share/Steam
|
||||
rm -f $HOME/.local/share/Steam/steam_dev.cfg
|
||||
bash -c 'printf "@nClientDownloadEnableHTTP2PlatformLinux 0\n@fDownloadRateImprovementToAddAnotherConnection 1.0\n" > $HOME/.local/share/Steam/steam_dev.cfg'
|
||||
|
||||
alias patch-gmod := fix-gmod
|
||||
|
||||
# Patch GMod's 64-bit beta to work properly on Linux (https://github.com/solsticegamestudios/GModCEFCodecFix)
|
||||
|
Loading…
x
Reference in New Issue
Block a user