Files
dotfiles/dotfiles/.config/sunshine/scripts/steam-bigpicture-tv-undo.sh
thomas 19d6936aa6 Feature: Enable hypridle without locking during Sunshine streams
Sunshine's global_prep_cmd now runs hypr/scripts/SunshineIdle.sh, which
holds a systemd idle inhibitor for the length of a stream (hypridle
respects it) and unlocks hyprlock if the session was already locked.
With that in place hypridle starts at login again.

Sunshine's config (sunshine.conf, apps.json, prep scripts) moves into
the dotfiles; credentials, logs and state stay local and are gitignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 18:14:44 +01:00

7 lines
346 B
Bash
Executable File

#!/bin/sh
# Undo for steam-bigpicture-tv-prep.sh: close Big Picture and restore
# HEADLESS-1 to its default mode (the one the Steam Deck target expects).
set -e
setsid steam steam://close/bigpicture
hyprctl eval 'hl.monitor({ output = "HEADLESS-1", mode = "1728x1080@60.00000", position = "4480x0", scale = 1.00000000, transform = 0, vrr = 0 })'