diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-01-22 18:21:35 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-01-22 18:21:35 +0100 |
commit | c9558c333952c2908ad863be0696fd5e4756c4ff (patch) | |
tree | 2ca6d6c87d9dab99c9567a5a031da362f8ef9f2b /.local/share/bin/ccpreview | |
parent | db653634b7ab2efb3f927a35d5066af158e3a2a6 (diff) |
mpd replaygain + remove rendered polybar template + rename audio tracks for capture card
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' ')" |