Skip to content

Commit

Permalink
Merge pull request #186 from shocklateboy92/features/mangohud
Browse files Browse the repository at this point in the history
feat: Add MangoHud support to Steam images running Sway
  • Loading branch information
ABeltramo authored Aug 25, 2024
2 parents b3ac0cc + 48ad31b commit c9a855a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/steam/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export WINEDLLOVERRIDES=dxgi=n
# so we don't get mangoapp showing up before Steam initializes
# on OOBE and stuff.
mkdir -p "$(dirname "$MANGOHUD_CONFIGFILE")"
echo "position=top-right" > "$MANGOHUD_CONFIGFILE"
echo "no_display" > "$MANGOHUD_CONFIGFILE"

# Prepare our initial VRS config file
Expand Down Expand Up @@ -123,6 +124,10 @@ elif [ -n "$RUN_SWAY" ]; then
# Start IBus to enable showing the steam on-screen keyboard
/usr/bin/ibus-daemon -d -r --panel=disable --emoji-extension=disable

# Enable MangoHud for all vulkan (including Proton) games
# unless the user has explicitly disabled it in config.
export MANGOHUD=${MANGOHUD:-1}

# Start Steam
source /opt/gow/launch-comp.sh
launcher /usr/games/steam ${STEAM_STARTUP_FLAGS}
Expand Down

0 comments on commit c9a855a

Please sign in to comment.