commit ebca4a8da3fdd4d1e5553dae5e3f6fe124a6c473 parent edfd753d2a0f15eb174078a3fdd4b8d42fa70c51 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 12 Mar 2020 15:54:38 +0100 Add script to toggle video feed Diffstat:
A | .local/bin/videotoggle | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/.local/bin/videotoggle b/.local/bin/videotoggle @@ -0,0 +1,9 @@ +#!/bin/sh +# remember to chown ad /dev/video0 +if pgrep video >/dev/null 2>&1; then + pkill video +else + nohup video -s 320 >/dev/null 2>&1 & + sleep 0.5 + xdotool click 1 +fi