From a032ac23ecf933a0fb33dfdafd51a62009951904 Mon Sep 17 00:00:00 2001 From: Shiloh Fen Date: Sat, 7 Jun 2025 04:03:05 -0500 Subject: [PATCH] Add lighthouse_console pairall script Signed-off-by: Shiloh Fen --- README.md | 4 ++++ scripts/lh-pairall.nu | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100755 scripts/lh-pairall.nu diff --git a/README.md b/README.md index a06f65b..19be49f 100644 --- a/README.md +++ b/README.md @@ -53,3 +53,7 @@ to be started. Notifies you if you're not using [kernel-blu](https://copr.fedorainfracloud.org/coprs/sentry/kernel-blu). Useful if you have multiple kernels installed. + +# lh-pairall + +Uses lighthouse_console to reset all SteamVR dongles, then put them all into pairing mode. diff --git a/scripts/lh-pairall.nu b/scripts/lh-pairall.nu new file mode 100755 index 0000000..02de525 --- /dev/null +++ b/scripts/lh-pairall.nu @@ -0,0 +1,6 @@ +#!/usr/bin/nu + +# TODO: Auto detect executable if not in path +# OPTIMIZE: Send commands on stdin, do not init lh console twice +lighthouse_console dongleresetall +lighthouse_console pairall -- 2.51.2