Something went wrong. Try again.
A script I use to launch steam games on my CachyOS desktop
Something went wrong. Try again.
2.0 kB · 51 lines · Created 9mo ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#!/bin/bash
# HOW TO USE: Add this file to any folder in your path, and set this launch parameter in Steam:# gameoptimizer %command%## Optional environment variables to disable features:# GO_DISABLE_FGMOD=1 - Disable fgmod wrapper# GO_DISABLE_OBS=1 - Disable OBS game capture# GO_DISABLE_GAMESCOPE=1 - Disable gamescope
export PROTON_FSR4_UPGRADE=1 # Enable FSR4export DXIL_SPIRV_CONFIG="wmma_rdna3_workaround" # Enable FSR4 on RDNA3 (FP8 emulation)export PROTON_USE_NTSYNC=1 # Enable NTSyncexport VKD3D_SHADER_DEBUG="none" # Disable VKD3D loggingexport PROTON_PRIORITY_HIGH=1 # Set high CPU priorityexport STAGING_SHARED_MEMORY=1 # Better memory managementexport PROTON_HEAP_DELAY_FREE=1 # Prevent crashes due to memory bugsexport DXVK_FRAME_RATE=115 # Add a maximum frame rate for the game
# Build command arrayCMD=()
# Use with Goverlay settings# If you want to fully disable fgmod in your game after launching it with this option enabled, you need to remove the dxgi.dll file in your game's .exe folderif [ -z "$GO_DISABLE_FGMOD" ]; then CMD+=("$HOME/fgmod/fgmod")fi
# Capture game in OBSif [ -z "$GO_DISABLE_OBS" ]; then CMD+=(obs-gamecapture)fi
# Launch gamescope windowif [ -z "$GO_DISABLE_GAMESCOPE" ]; then TEMP_LD_PRELOAD="$LD_PRELOAD" CMD+=( LD_PRELOAD="" # Unset LD_PRELOAD to fix FPS bomb gamescope --fullscreen # Launch in fullscreen --adaptive-sync # Enable adaptive-sync. May be unnecesary in your DE --hdr-enabled # Enable hdr. Remove this line if your monitor is not hdr capable --force-grab-cursor # Fix cursor missbehavior in some games -W 2560 -H 1440 # Define window resolution. Use your monitor resolution for this setting -r 115 # 115 fps max. to ensure VRR is working correctly. I have a 120Hz monitor, so 120-5=115 -- env LD_PRELOAD="$TEMP_LD_PRELOAD" # Add LD_PRELOAD before the game command to fix steam overlay )fi
CMD+=("$@")exec "${CMD[@]}"