summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorOliver Dvorski <oliver.dvorski@gmail.com>2020-12-26 22:15:35 +0100
committerGitHub <noreply@github.com>2020-12-26 22:15:35 +0100
commit306578196bdd1f8cdea488d6d82ef7bf993f906b (patch)
tree811c86c189aa79eee7923b2039792a0956f00828 /config.h
parent67eabfe475e273370de6e224f2ccd55f5d65452f (diff)
Make the Mod+F11 camera window less laggy
There used to be a 1s delay on my webcam feed. After a bit of googling and stumbling upon this article https://wiki.archlinux.org/index.php/Webcam_setup I found out that mpv has a low latency profile that proved to be useful on my setup
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index fdd8766..de031da 100644
--- a/config.h
+++ b/config.h
@@ -243,7 +243,7 @@ static Key keys[] = {
{ MODKEY, XK_F8, spawn, SHCMD("mw -Y") },
{ MODKEY, XK_F9, spawn, SHCMD("dmenumount") },
{ MODKEY, XK_F10, spawn, SHCMD("dmenuumount") },
- { MODKEY, XK_F11, spawn, SHCMD("mpv --no-cache --no-osc --no-input-default-bindings --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)") },
+ { MODKEY, XK_F11, spawn, SHCMD("mpv --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)") },
/* { MODKEY, XK_F12, xrdb, {.v = NULL } }, */
{ MODKEY, XK_space, zoom, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },