diff options
Diffstat (limited to '.local/share/bin/ccpreview')
-rwxr-xr-x | .local/share/bin/ccpreview | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/share/bin/ccpreview b/.local/share/bin/ccpreview index 7ad19b4..1e64593 100755 --- a/.local/share/bin/ccpreview +++ b/.local/share/bin/ccpreview @@ -6,8 +6,8 @@ FRAMERATE="$2" RESOLUTION="$1" DEVICE="/dev/$(readlink /dev/v4l/by-id/usb-MACROSILICON_USB_Video-* | head -n1 | cut -c7-)" -CAPTURE_FL="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_FL' | cut -f3 -d' ')" -CAPTURE_FR="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_FR' | cut -f3 -d' ')" +CAPTURE_FL="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_AUX0' | cut -f3 -d' ')" +CAPTURE_FR="$(pw-link -oI | grep 'usb-MACROSILICON_USB_Video-.*:capture_AUX1' | cut -f3 -d' ')" DEFAULT_SINK_ALIAS="$(pw-metadata 0 default.audio.sink | grep -Po "value:'(.*?)'" | head -c-2 | cut -c8- | jq --raw-output .name)" OUTPUT_FL="$(pw-link -iI | grep "$DEFAULT_SINK_ALIAS:playback_FL" | cut -f3 -d' ')" OUTPUT_FR="$(pw-link -iI | grep "$DEFAULT_SINK_ALIAS:playback_FR" | cut -f3 -d' ')" |