DP-2-wl-record.sh 298 B

12345678910111213
  1. #!/bin/bash
  2. id=`pgrep wf-recorder -d -D`
  3. status=$?
  4. if [ $status != 0 ]
  5. then
  6. wf-recorder -c h264_vaapi -d /dev/dri/renderD128 --audio=alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor -o DP-2 -f ~/ScreenNonRecord/$(date +rec_DP-2_%Y-%m-%d-%H%M%S.mp4);
  7. else
  8. pkill --signal SIGINT wf-recorder
  9. fi