# vim: set ft=make : alias patch-gmod := fix-gmod # Patch GMod's 64-bit beta to work properly on Linux (https://github.com/solsticegamestudios/GModPatchTool) [group("gaming")] fix-gmod: #!/usr/bin/bash /usr/bin/gmodpatchtool # Kills all processes related to wine and proton. This forces it to restart next time you launch the game (you might still have to press STOP in steam to kill the game binary) [group("gaming")] fix-proton-hang: #!/usr/bin/bash PROTONCORE=(pv-bwrap pressure-vessel reaper explorer.exe rpcss.exe plugplay.exe services.exe svchost.exe winedevice.exe winedevice.exe wineserver) for PROG in "${PROTONCORE[@]}"; do killall -9 "$PROG" done # Reset the Steam folder back to a fresh state [group("gaming")] fix-reset-steam: #!/usr/bin/bash source /usr/lib/ujust/ujust.sh STEAMPATH="$HOME/.local/share/Steam" # Get a list of the contents of steams top level directory except a list of folders/files we can skip to avoid losing data STEAMFILES=$(ls ~/.local/share/Steam/ | grep -vP "(userdata|compatibilitytools\.d|config|controller_base|steamapps|music)") echo "This script will ${b}remove${n} a bunch of files from $STEAMPATH and sign you out of steam!" echo "However your games, music, saves, controller profiles and compatibilitytools/custom-proton will not be touched." echo "To cancel and abort this operation press CTRL+C now, to continue press ENTER." read i killall -9 steam sleep 1 echo "Resetting Steam to a freshly installed state." # Loop through each file and process it for STEAMFILE in $STEAMFILES do if [ -d "$STEAMPATH/$STEAMFILE" ]; then rm -rv "$STEAMPATH/$STEAMFILE" elif [ -f "$STEAMPATH/$STEAMFILE" ]; then rm -v "$STEAMPATH/$STEAMFILE" fi done sleep 1 bazzite-steam --disable-firstrun & exit 0 # Toggle Bluetooth headset profile mode. If enabled, mic will be disabled on the Bluetooth device preventing the switch to headset profile, which has poor audio quality. Disable to restore mic functionality. [group("audio")] toggle-bt-mic ACTION="": #!/usr/bin/bash source /usr/lib/ujust/ujust.sh CONFIG_FILE="/etc/wireplumber/wireplumber.conf.d/51-mitigate-annoying-profile-switch.conf" OPTION="{{ ACTION }}" # Check current status CURRENT_STATE="Disabled" if [ -f "$CONFIG_FILE" ]; then CURRENT_STATE="Enabled" fi if [ "$OPTION" == "help" ]; then echo "Usage: ujust toggle-bt-mic