aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles')
-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 \