Skip to content

Instantly share code, notes, and snippets.

@gort818
Created August 17, 2020 05:44
Show Gist options
  • Save gort818/296456edfb7ad9a6ed578bc53c4392b4 to your computer and use it in GitHub Desktop.
Save gort818/296456edfb7ad9a6ed578bc53c4392b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
export MANGOHUD=1
# ENV variables
Env[0]='gamemoderun'
Env[1]='WINEDEBUG=-all'
# Set wine prefix
prefix=""
# Set your wine binary
wine=""
#e.g. /home/$USER/.local/share/lutris/runners/wine/lutris-5.7-x86_64/bin/wine
#Set your game exe
game=""
#e.g. game="/mnt/nvme/bfv/drive_c/Program Files (x86)/Origin/Origin.exe"
#run the game
echo Running ${Env[@]} WINEPREFIX="$prefix" "$wine" "$game"
${Env[@]} WINEPREFIX="$prefix" "$wine" "$game"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment