diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-07-28 21:49:44 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-07-28 21:49:44 +0300 |
commit | 828a6cd2fc3f8a0769215241a3c68d07f954ab43 (patch) | |
tree | e5e07cbc75a935acecdcd1d937c07c87f0cfaa2f /dotfiles/.local/bin/camtoggle | |
parent | 877e42ab886d4a43b7db07952b01611238f3bef6 (diff) | |
download | swayrice-828a6cd2fc3f8a0769215241a3c68d07f954ab43.tar.gz swayrice-828a6cd2fc3f8a0769215241a3c68d07f954ab43.zip |
webcam float: correctly check for available camera devices
Diffstat (limited to 'dotfiles/.local/bin/camtoggle')
-rwxr-xr-x | dotfiles/.local/bin/camtoggle | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/camtoggle b/dotfiles/.local/bin/camtoggle index 8f3de0e..00fd201 100755 --- a/dotfiles/.local/bin/camtoggle +++ b/dotfiles/.local/bin/camtoggle @@ -3,7 +3,7 @@ # I have two cameras on my laptop and the first one is an IR camera (video0) # If a second camera is present, use the second one camera="/dev/video0" -[ -f /dev/video2 ] && camera="/dev/video2" +[ -e /dev/video2 ] && camera="/dev/video2" pkill -f /dev/video || mpv \ --gpu-context=wayland \ |