# User unit for gamescope-hyperhdr. The Arch package installs it into /usr/lib/systemd/user; # for a manual install copy it to ~/.config/systemd/user. It runs as the user of the PipeWire # session and waits for the gamescope node, so it can simply stay enabled. To run it only # together with gamescope-tv.service, add the gamescope-tv.conf drop-in. [Unit] Description=gamescope → HyperHDR ambilight feed After=pipewire.service wireplumber.service Wants=pipewire.service [Service] Type=simple # System-wide settings, overridden by the per-user file. EnvironmentFile=-/etc/gamescope-hyperhdr.env EnvironmentFile=-%h/.config/gamescope-hyperhdr/env # No absolute path: systemd searches /usr/local/bin and /usr/bin, which covers both the package # and a manual install. ExecStart=gamescope-hyperhdr Restart=on-failure RestartSec=2 # Exit code 2 is a configuration error (e.g. GSHDR_HOST not set); restarting will not help. RestartPreventExitStatus=2 NoNewPrivileges=yes [Install] WantedBy=default.target