mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
feat(hosts): add WiVRn CLI streaming for Quest 3 #392
This commit is contained in:
1 parent
7c09a1d082
commit
3e66bbf24f
8 files changed
+426
-10
No files matched your search
@@ -382,6 +382,40 @@ game:
|
||||
del-failed:
|
||||
kubectl delete pod --all-namespaces --field-selector="status.phase==Failed"
|
||||
|
||||
# Start PC VR on idols-ai and route desktop audio to the headset.
|
||||
[linux]
|
||||
[group('vr')]
|
||||
vr:
|
||||
systemctl --user start wivrn.service
|
||||
systemctl --user stop wivrn-audio.service | complete | ignore
|
||||
systemd-run --user --collect --unit=wivrn-audio nu {{absolute_path("scripts/wivrn-audio.nu")}} switch --timeout 600
|
||||
|
||||
# Route audio to a headset that is connected right now.
|
||||
[linux]
|
||||
[group('vr')]
|
||||
vr-audio:
|
||||
nu {{absolute_path("scripts/wivrn-audio.nu")}} switch --timeout 60
|
||||
|
||||
# Stop PC VR when finished and restore the previous audio devices.
|
||||
[linux]
|
||||
[group('vr')]
|
||||
vr-stop:
|
||||
systemctl --user stop wivrn-audio.service | complete | ignore
|
||||
nu {{absolute_path("scripts/wivrn-audio.nu")}} restore
|
||||
systemctl --user stop wivrn.service
|
||||
|
||||
# Show PC VR service status.
|
||||
[linux]
|
||||
[group('vr')]
|
||||
vr-status:
|
||||
systemctl --user status wivrn.service --no-pager
|
||||
|
||||
# Follow PC VR service logs.
|
||||
[linux]
|
||||
[group('vr')]
|
||||
vr-logs:
|
||||
journalctl --user -u wivrn.service -f
|
||||
|
||||
[linux]
|
||||
[group('services')]
|
||||
list-inactive:
|
||||
|
||||
Reference in new issue
Block a user