From e381f1c560a775bff483f93a2d983092d5993a0a Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 29 Oct 2020 19:25:33 -0400 Subject: add arch linux news rss --- .local/bin/camtoggle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/camtoggle b/.local/bin/camtoggle index a71bdf7..07cfa2c 100755 --- a/.local/bin/camtoggle +++ b/.local/bin/camtoggle @@ -1,4 +1,5 @@ #!/bin/sh - -mpv --no-cache --no-osc --no-input-default-bindings --input-conf=/dev/null --title=webcam $(ls /dev/video[0,4,6,8] | tail -n 1) +[ "$1" == "" ] && \ +mpv --no-cache --no-osc --no-input-default-bindings --input-conf=/dev/null --title=webcam $(ls /dev/video[0,4,6,8] | tail -n 1) || \ +mpv --no-keepaspect-window --no-cache --no-osc --no-input-default-bindings --input-conf=/dev/null --title=webcam $(ls /dev/video$1 | tail -n 1) # 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) -- cgit v1.2.3