#!/bin/bash export WINEPREFIX="$HOME/.PlayOnLinux/wineprefix/Steam64" export WINEDEBUG="-all" xset -dpms xset s off RES=$(DISPLAY=:0 xdpyinfo | grep dimensions | awk '{print $2}') VIRT_DESK="explorer /desktop=Steam,$RES" WINEVERSION="$HOME/.PlayOnLinux/wine/linux-amd64/1.7.46" STEAM_DIR="$HOME/.PlayOnLinux/wineprefix/Steam64/drive_c/Program Files (x86)/Steam" GAME_DIR="SteamApps/common/Wolfenstein.The.New.Order" GAME_EXEC="WolfNewOrder_x64.exe" $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/Steam.exe -silent & sleep 8 if [ "${SteamTenfoot}" -eq "1" ]; then $WINEVERSION/bin/wine "$STEAM_DIR"/"$GAME_DIR"/"$GAME_EXEC" else $WINEVERSION/bin/wine $VIRT_DESK "$STEAM_DIR"/"$GAME_DIR"/"$GAME_EXEC" fi sleep 10 while ps -C "$GAME_EXEC" > /dev/null; do sleep 5; done; $WINEVERSION/bin/wine "$STEAM_DIR"/Steam.exe -shutdown while ps -C Steam.exe > /dev/null; do sleep 2; done; $WINEVERSION/bin/wineserver -k # working (but not only): 1.7.19-WolfensteinNewOrder, 1.7.45, 1.7.46 # +toggle com_synctotime (unlock FPS cap)