fixing capture card, updating scrot location
This commit is contained in:
parent
34bcc9c5c1
commit
7cecc7db74
|
@ -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 &
|
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
|
# 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 &
|
alsaloop -C hw:2,0 -P hw:1,0 &
|
||||||
|
if [[ $(pgrep -f alsaloop) -gt 0 ]]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Watch for mpv to exit
|
# Watch for mpv to exit
|
||||||
while pgrep -f mpv >/dev/null; do
|
while pgrep -f mpv >/dev/null; do
|
||||||
|
sleep 3
|
||||||
continue
|
continue
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# TODO: Autodetect mpv and boop.sh to make them optional
|
# TODO: Autodetect mpv and boop.sh to make them optional
|
||||||
# TODO: Figure out how to capture a specific monitor, not just main
|
# 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"
|
sound="${HOME}/src/local-bin/sounds/shutter.ogg"
|
||||||
filename="$(date +'%Y%m%d_%H%M%S').png"
|
filename="$(date +'%Y%m%d_%H%M%S').png"
|
||||||
resolution="1920x1080"
|
resolution="1920x1080"
|
||||||
|
|
Loading…
Reference in New Issue