From 7cecc7db74bea2c91d4fdcbb5f44c4a284d741e7 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Fri, 11 Dec 2020 13:04:56 +0200 Subject: [PATCH] fixing capture card, updating scrot location --- bin/capturecard | 9 ++++++++- bin/scrot.sh | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/capturecard b/bin/capturecard index 08e03a5..4ca1a2c 100755 --- a/bin/capturecard +++ b/bin/capturecard @@ -27,10 +27,17 @@ v4l2-ctl --set-fmt-video=width=1920,height=1080 mpv --title="Capture Card" av://v4l2:/dev/video0 --profile=low-latency --untimed & # Run a loop for the capture card digital audio to be sent to my desktop audio -alsaloop -C hw:2,0 -P hw:1,0 & +while : +do + alsaloop -C hw:2,0 -P hw:1,0 & + if [[ $(pgrep -f alsaloop) -gt 0 ]]; then + break + fi +done # Watch for mpv to exit while pgrep -f mpv >/dev/null; do + sleep 3 continue done diff --git a/bin/scrot.sh b/bin/scrot.sh index 4c137b8..53757f0 100755 --- a/bin/scrot.sh +++ b/bin/scrot.sh @@ -18,7 +18,7 @@ # TODO: Autodetect mpv and boop.sh to make them optional # TODO: Figure out how to capture a specific monitor, not just main -screendir="$HOME/Nextcloud/Screenshots/" +screendir="/data/nextcloud/Screenshots/" sound="${HOME}/src/local-bin/sounds/shutter.ogg" filename="$(date +'%Y%m%d_%H%M%S').png" resolution="1920x1080"