Crates.io | litra-autotoggle |
lib.rs | litra-autotoggle |
version | |
source | src |
created_at | 2024-10-09 08:51:28.295229 |
updated_at | 2024-11-03 17:23:53.69965 |
description | Automatically turn your Logitech Litra device on when your webcam turns on, and off when your webcam turns off (macOS and Linux only) |
homepage | |
repository | https://github.com/timrogers/litra-autotoggle |
max_upload_size | |
id | 1402146 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
litra-autotoggle
💡 Automatically turn your Logitech Litra device on when your webcam turns on, and off when your webcam turns off (macOS and Linux only)
The following Logitech Litra devices, connected via USB, are supported:
litra-autotoggle
by running brew tap timrogers/tap && brew install litra-autotoggle
.litra-autotoggle --help
to check that everything is working.litra-autotoggle
crate by running cargo install litra-autotoggle
.litra-autotoggle --help
to check that everything is working and see the available commands.$PATH
, so you can execute it from your shell. For the best experience, call it litra-autotoggle
.litra-autotoggle --help
to check that everything is working.Run brew services start timrogers/tap/litra-autotoggle
.
litra-autotoggle
will run in the background, and your Litra will turn on when your webcam turns on, and off when your webcam turns off. If no Litra device is connected, the listener will keep on running, but will do nothing.
[!NOTE] When starting the service for the first time on a macOS device, you will receive a notification warning you about software running in the background.
Just run litra-autotoggle
. Your Litra will turn on when your webcam turns on, and off when your webcam turns off.
The following arguments are supported:
--serial-number
to point to a specific Litra device. You can get the serial number using the litra devices
command in the litra
CLI.--require-device
to enforce that a Litra device must be connected. By default, the listener will keep running even if no Litra device is found. With this set, the listener will exit whenever it looks for a Litra device and none is found.--video-device
(Linux only) to watch a specific video device (e.g. /dev/video0
). By default, all video devices will be watched.udev
permissions (Linux only)On most Linux operating systems, you will need to manually configure permissions using udev
to allow non-root
users to access and manage Litra devices.
To allow all users that are part of the video
group to access the Litra devices, copy the 99-litra.rules
file into /etc/udev/rules.d
.
Next, reboot your computer or run the following commands as root
:
# udevadm control --reload-rules
# udevadm trigger