camtoggle 286 B

1234567891011
  1. #!/bin/bash
  2. # Use mpv as camera
  3. pkill -f /dev/video0 || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="webcam" /dev/video0
  4. #pkill -f /dev/video0 || mpv --no-osc --geometry=-0-0 --autofit=30% --title="webcam" /dev/video0