-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
auto-toggle
command that turns light on/off when using a webcam (…
…#18) * Add `auto-toggle` command that turns light on/off when using a webcam This adds a new `auto-toggle` command to the command line interface. When using that command, `litra` will keep running and monitor the video device files (`/dev/video*`) using inotify. Opening or closing such a device will be tracked using a counter to determine if at least one device is currently opened. If so, the light is turned on, otherwise it's turned off. * build: Automatically build `auto-toggle` CLI command on Linux * Update src/main.rs --------- Co-authored-by: Tim Rogers <[email protected]>
- Loading branch information
Showing
3 changed files
with
238 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters