Browse Source

[TASK] update gamedummy script

master
Dor dicke Gind 1 year ago
parent
commit
b84ee4da8e
  1. 95
      Scripts/game-dummy.sh

95
Scripts/game-dummy.sh

@ -1,30 +1,87 @@
#!/bin/bash #!/bin/bash
export DXVK_LOG_LEVEL=none export DXVK_LOG_LEVEL=none
export DXVK_ASYNC=1 #export ENABLE_GAMESCOPE_WSI=1
export RADV_PERFTEST=sam,rt export LD_BIND_NOW=1
export VKD3D_CONFIG=dxr11 #export MESA_LOADER_DRIVER_OVERRIDE=zink
export RADV_PERFTEST=sam,rt,gpl
export STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/alex/.steam
#export VKD3D_CONFIG=dxr,dxr11
#export VKD3D_FEATURE_LEVEL=12_2 #export VKD3D_FEATURE_LEVEL=12_2
export WINEDEBUG=-all
export WINEDLLOVERRIDES=winedbg.exe=d
export WINEFSYNC=1 export WINEFSYNC=1
#export NO_GAMEMODE=1
#export WINEDEBUG=-all
#export WINEDLLOVERRIDES=winedbg.exe=
command="gamescope -f -U -o 30 -w 1920 -h 1080 -- gamemoderun mangohud ENABLE_VKBASALT=1" height=1200
if [[ "$@" == *"SteamLaunch"* ]]; then width=1920
$command "$@"
#xfce4-terminal -e "bash -c $command "$@";bash" if [ $(xrandr --prop | grep 18180103803c22782aeed5a356509f26) ]; then
exit 0 height=1080
fi
if [ -z $STEAM_COMPAT_DATA_PATH ]; then
export STEAM_COMPAT_DATA_PATH="/home/alex/.wine_proton"
fi fi
cd "$1" command="gamescope -f -F nis -o 30 -w $width -h $height -- gamemoderun mangohud --dlsym ENABLE_VKBASALT=1"
wine="wine" #command="gamescope -U -o 30 -w 1280 -h 800 -- gamemoderun mangohud ENABLE_VKBASALT=1"
if [ "$3" ]; then if [ $NO_GAMESCOPE ]; then
wine="$3" command="gamemoderun mangohud ENABLE_VKBASALT=1"
fi fi
if [ "$4" != "true" ]; then if [ $NO_GAMEMODE ]; then
wine="$wine explorer /desktop=,1920x1080" notify-send 'Starte ohne gamemode' --icon=emblem-games
command="gamescope -f -F nis -o 30 -w $width -h $height -- mangohud ENABLE_VKBASALT=1"
fi fi
command="$command $wine $2" if [[ "$@" == *"/mnt/gaming/"* || $GAMING_HDD ]]; then
#xfce4-terminal -e "bash -c \"$command\";bash" notifyId=$(notify-send 'Fahre Festplatte hoch' 'Geduld junger Padawan...' --icon=drive-harddisk -p)
bash -c "$command" $(output="$(echo -n $(sudo hdparm -S 0 /dev/sda))"; notify-send 'Festplatte läuft' "$output" --icon=drive-harddisk -r $notifyId) &
fi
if [ $# -eq 1 ]; then
$command "$1"
elif [[ "$@" == *"SteamLaunch"* ]] || [[ "$@" == *"/Heroic/"* ]]; then
$command "$@"
else
cd "$1"
wine="wine"
if [ "$3" ]; then
wine="$3"
if [ "$wine" == "staging" ]; then
wine="/opt/wine-tkg-staging-fsync-git-opt/bin/wine"
fi
fi
if [ "$4" != "true" ] && [[ "$wine" != *"proton"* ]]; then
wine="$wine explorer /desktop=Game,${width}x${height}"
fi
if [ "$wine" == "proton" ]; then
command="$command /home/alex/.local/share/Steam/compatibilitytools.d/GE-Proton7-55/proton run '$1$2'"
elif [ "$wine" == "proton-exp" ]; then
command="$command /home/alex/.local/share/Steam/steamapps/common/Proton\ -\ Experimental/proton run '$1$2'"
elif [ "$wine" == "proton-7" ]; then
command="$command /home/alex/.local/share/Steam/steamapps/common/Proton\ 7.0/proton run '$1$2'"
elif [ "$wine" == "proton-8" ]; then
command="$command /home/alex/.local/share/Steam/steamapps/common/Proton\ 8.0/proton run '$1$2'"
elif [ "$wine" == "proton-ge" ]; then
command="$command /home/alex/.local/share/Steam/compatibilitytools.d/GE-Proton8-14/proton run '$1$2'"
elif [ "$wine" == "proton-ge-13" ]; then
command="$command /home/alex/.local/share/Steam/compatibilitytools.d/GE-Proton8-13/proton run '$1$2'"
else
command="$command $wine $2"
fi
#xfce4-terminal -e "bash -c \"$command\";bash"
#echo $wine
#echo $command
bash -c "$command"
#sudo killall $(echo $2 | cut -d ' ' -f1)
#sudo killall explorer.exe
fi
if [[ "$@" == *"/mnt/gaming/"* || $GAMING_HDD ]]; then
output="$(echo -n $(sudo hdparm -S 60 /dev/sda))"
notify-send 'Setze Timeout für Festplatte' "$output" --icon=drive-harddisk
fi
Loading…
Cancel
Save