Skip to content

Commit

Permalink
feat: Add a just command and default-enabled option to the Bazzite po…
Browse files Browse the repository at this point in the history
…rtal to fix download speeds under Steam for Linux.
  • Loading branch information
KyleGospo committed Jan 13, 2024
1 parent 3b029d0 commit 9f6edde
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
Expand Up @@ -23,7 +23,7 @@ screens:
packages:
- Set input group: sudo -A ujust add-user-to-input-group
Add Nested Desktop to Steam:
description: Adds a nested desktop environment to Steam gamemode.
description: Adds a nested desktop environment to Steam game mode.
default: true
packages:
- Add to steam: ujust add-nested-desktop-to-steam
Expand Down Expand Up @@ -60,6 +60,11 @@ screens:
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
Legacy Memory Configuration (Not recommended):
description: Disable ZRAM and enable adjustable swap file, defaults to 1GB.
default: false
Expand Down
Expand Up @@ -14,6 +14,12 @@ install-gamemode-video:
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
ln -s /usr/share/ublue-os/bazzite/bazzite.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm

# 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'

# Restore the default Terminal
restore-original-terminal:
#!/usr/bin/bash
Expand Down
Expand Up @@ -22,6 +22,11 @@ screens:
default: true
packages:
- Set input group: sudo -A ujust add-user-to-input-group
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
Expand Down
@@ -1,5 +1,11 @@
# 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'

# Restore the default Terminal
restore-original-terminal:
#!/usr/bin/bash
Expand Down

0 comments on commit 9f6edde

Please sign in to comment.