aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-07-28 21:49:44 +0300
committerYaroslav <contact@yaroslavps.com>2020-07-28 21:49:44 +0300
commit828a6cd2fc3f8a0769215241a3c68d07f954ab43 (patch)
treee5e07cbc75a935acecdcd1d937c07c87f0cfaa2f /dotfiles/.local/bin
parent877e42ab886d4a43b7db07952b01611238f3bef6 (diff)
downloadswayrice-828a6cd2fc3f8a0769215241a3c68d07f954ab43.tar.gz
swayrice-828a6cd2fc3f8a0769215241a3c68d07f954ab43.zip
webcam float: correctly check for available camera devices
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-xdotfiles/.local/bin/camtoggle2
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 \