feat: gamescope launch helper

This commit is contained in:
hesam-init 2024-03-27 13:01:36 +03:30
parent 69b7195ec1
commit 540b88bfb2
3 changed files with 16 additions and 3 deletions

View file

@ -4,7 +4,8 @@ source ~/.gamescope/utils/main.sh
source ~/.gamescope/configs.sh
run_os() {
MANGOHUD=1 gamescope -W 1920 -H 1080 -f -F fsr -- $PCSX2 -fullscreen -bigpicture
MANGOHUD=1 gamescope -W $WIDTH -H $HEIGHT -f -F fsr --sharpness 15 --xwayland-count 2 -- $PCSX2 -fullscreen -bigpicture
}
presetup
run_os

View file

@ -4,7 +4,8 @@ source ~/.gamescope/utils/main.sh
source ~/.gamescope/configs.sh
run_os() {
MANGOHUD=1 STEAM_MULTIPLE_XWAYLANDS=1 gamescope -W $WIDTH -H $HEIGHT -r $REFRESH_RATE -e --xwayland-count 2 --adaptive-sync -- steam -gamepadui -steamdeck
MANGOHUD=1 STEAM_MULTIPLE_XWAYLANDS=1 gamescope -e --xwayland-count 2 --adaptive-sync -F fsr -W $WIDTH -H $HEIGHT -r $REFRESH_RATE -- steam -gamepadui -steamdeck
}
presetup
run_os

View file

@ -16,4 +16,15 @@ run_services() {
check_and_start "wireplumber" "/usr/bin/wireplumber"
}
run_services
check_command() {
if ! command -v $1 &>/dev/null; then
echo "$1 is not installed. Please install $1 to continue."
exit 1
fi
}
presetup() {
run_services
check_command "gamescope"
check_command "gamemoderun"
}