fixing capture card, updating scrot location

This commit is contained in:
Siina Mashek 2020-12-11 13:04:56 +02:00
parent 34bcc9c5c1
commit 7cecc7db74
2 changed files with 9 additions and 2 deletions

View File

@ -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
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

View File

@ -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"