mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-06-06 03:53:42 +02:00
feat: gamescope launch helper
This commit is contained in:
parent
69b7195ec1
commit
540b88bfb2
3 changed files with 16 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue