Dor dicke Gind
1 year ago
1 changed files with 76 additions and 19 deletions
@ -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 |
fi |
||||||
|
|
||||||
cd "$1" |
if [ -z $STEAM_COMPAT_DATA_PATH ]; then |
||||||
wine="wine" |
export STEAM_COMPAT_DATA_PATH="/home/alex/.wine_proton" |
||||||
if [ "$3" ]; then |
fi |
||||||
wine="$3" |
|
||||||
|
command="gamescope -f -F nis -o 30 -w $width -h $height -- gamemoderun mangohud --dlsym ENABLE_VKBASALT=1" |
||||||
|
#command="gamescope -U -o 30 -w 1280 -h 800 -- gamemoderun mangohud ENABLE_VKBASALT=1" |
||||||
|
if [ $NO_GAMESCOPE ]; then |
||||||
|
command="gamemoderun mangohud ENABLE_VKBASALT=1" |
||||||
|
fi |
||||||
|
|
||||||
|
if [ $NO_GAMEMODE ]; then |
||||||
|
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 |
||||||
|
|
||||||
if [ "$4" != "true" ]; then |
if [[ "$@" == *"/mnt/gaming/"* || $GAMING_HDD ]]; then |
||||||
wine="$wine explorer /desktop=,1920x1080" |
notifyId=$(notify-send 'Fahre Festplatte hoch' 'Geduld junger Padawan...' --icon=drive-harddisk -p) |
||||||
|
$(output="$(echo -n $(sudo hdparm -S 0 /dev/sda))"; notify-send 'Festplatte läuft' "$output" --icon=drive-harddisk -r $notifyId) & |
||||||
fi |
fi |
||||||
|
|
||||||
command="$command $wine $2" |
if [ $# -eq 1 ]; then |
||||||
#xfce4-terminal -e "bash -c \"$command\";bash" |
$command "$1" |
||||||
bash -c "$command" |
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…
Reference in new issue