Add untracked scripts, links and files used by scripts

This commit is contained in:
Sheldon Lee 2024-05-16 00:07:04 +08:00
parent 552498c74f
commit 41be8167b6
9 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1 @@
../steam/prefixhelper.sh

View File

@ -0,0 +1,8 @@
#!/bin/bash
gitshow()
{
hash=$(git log --oneline . | fzf | awk '{print$1}')
[ -z "$hash" ] && return
git show "$hash"
}

View File

@ -0,0 +1,6 @@
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x0e8d'/>
<product id='0x0616'/>
</source>
</hostdev>

View File

@ -0,0 +1,6 @@
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x174c'/>
<product id='0x55aa'/>
</source>
</hostdev>

View File

@ -0,0 +1,6 @@
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x04fe'/>
<product id='0x0020'/>
</source>
</hostdev>

View File

@ -0,0 +1,6 @@
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x8968'/>
<product id='0x4938'/>
</source>
</hostdev>

View File

@ -0,0 +1,6 @@
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='0x3554'/>
<product id='0xf510'/>
</source>
</hostdev>

View File

@ -0,0 +1,26 @@
#!/bin/sh
steamdir="$HOME/.local/share/Steam"
steamapps="$steamdir/steamapps"
common="$steamapps/common"
compatdata="$steamapps/compatdata"
id="1611740"
proton_version="Proton 6.3"
if [ ! -e "$compatdata/$id/pfx" ]; then
echo "Prefix not found."
exit
fi
if [ ! -e "$common/$proton_version/proton" ]; then
echo "Proton not found."
exit
fi
echo "$PWD/$1"
STEAM_COMPAT_DATA_PATH="$compatdata/$id" \
STEAM_COMPAT_CLIENT_INSTALL_PATH="$steamdir" \
WINEPREFIX="$compatdata/$id/pfx" \
"$common/$proton_version/proton" run "$PWD/$1"