exiting steam when starting steam tv mode

This commit is contained in:
2026-10-14 14:31:30 +02:00
parent 2ddccf36af
commit 422cea2c77
+1
View File
@@ -11,6 +11,7 @@
audioDeviceSearchTerm = "SONY TV";
script = pkgs.writeShellScriptBin "switch-to-steam-tv" ''
nu -c 'wpctl set-default (wpctl status | lines | where ($it | str contains "${audioDeviceSearchTerm}") | str replace -r "│\\s*(\\d+).*" "$1" | first)'
killall steam
${pkgs.gamescope}/bin/gamescope -W 2560 -H 1440 -f -e -- steam -bigpicture
'';
in