commit d0c97456f6445f84f1b8568149376114b9e1e3b9
parent e03ffcf33110131128ab124547b39d2f5be0a4f1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 12 Jun 2020 11:18:40 +0200
Use different video size for each device
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.local/bin/videotoggle b/.local/bin/videotoggle
@@ -1,12 +1,10 @@
#!/bin/sh
# remember `chmod g+rw /dev/video[01]`
-videoopts="-s 320"
-
if pgrep video >/dev/null 2>&1; then
pkill video
else
- nohup sh -c 'video -f /dev/video1 $videoopts || video $videoopts' \
+ nohup sh -c 'video -f /dev/video1 -s 500 || video -s 320' \
>/dev/null 2>&1 &
sleep 0.5
xdotool click 1