Vendor the command set the menu and shell depend on

This commit is contained in:
2026-09-19 23:57:12 -04:00
parent 9501f2bb4d
commit c5434026a8
179 changed files with 12414 additions and 54 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# blob:summary=Pick a webcam and start a screen recording with it
# blob:examples=blob capture screenrecording-with-webcam
mapfile -t devices < <(blob-capture-webcam-list)
if (( ${#devices[@]} == 0 )); then
blob-notify-send "No webcam devices found" -u critical -t 3000
exit 1
fi
if (( ${#devices[@]} == 1 )); then
device="${devices[0]%%[[:space:]]*}"
else
selection=$(blob-menu-select "Select Webcam" "${devices[@]}" -- --width 520 --maxheight 520) || exit 1
device="${selection%%[[:space:]]*}"
fi
exec blob-capture-record \
--with-desktop-audio --with-microphone-audio \
--with-webcam --webcam-device="$device"