From 50a442998bf622f670ff7b33b251a3c13760420c Mon Sep 17 00:00:00 2001 From: Yunus Kahveci Date: Thu, 16 Jul 2020 21:32:02 +0200 Subject: [PATCH] Improved latency in camtoggle script (#766) After I had 2 seconds of latency with this script on my machine, I decided to improve it using an article from the arch wiki (https://wiki.archlinux.org/index.php/Webcam_setup#mpv) --- .local/bin/camtoggle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/camtoggle b/.local/bin/camtoggle index 05679c0..d29a8b4 100755 --- a/.local/bin/camtoggle +++ b/.local/bin/camtoggle @@ -1,2 +1,2 @@ #!/bin/sh -pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="mpvfloat" /dev/video0 +pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="mpvfloat" --profile=low-latency --untimed /dev/video0