Added steam gamescope; updated package lists; small fixes.
This commit is contained in:
parent
7d61371ec0
commit
e067f48a13
19 changed files with 222 additions and 56 deletions
30
private_dot_local/bin/executable_steam-gamescope
Normal file
30
private_dot_local/bin/executable_steam-gamescope
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue