Added steam gamescope; updated package lists; small fixes.

This commit is contained in:
Jurn Wubben 2026-01-08 19:48:33 +01:00
parent 7d61371ec0
commit e067f48a13
19 changed files with 222 additions and 56 deletions

View file

@ -0,0 +1,30 @@
#!/usr/bin/env bash
error() {
local err="Error! $@"
echo "$err"
notify-send "Steam-Gamescope" "$err"
exit 1
}
dependencies=(steam gamescope jq hyprctl notify-send)
for dep in "${dependencies[@]}"; do
if command -v "$dep" >/dev/null 2>&1; then
continue
fi
error "Missing dependency '$dep'"
done
read -r name width height _ < <(
hyprctl -j monitors | jq -j '.[] | select(.focused) | .name, " ", .width, " ", .height, "\u0000"'
)
notify-send "Steam" "Launching on $name."
gamescope -w "$width" -h "$height" -ef --adaptive-sync -- steam -gamepadui -steamos3