- #!/bin/bash
- id=`pgrep wf-recorder -d -D`
- status=$?
- if [ $status != 0 ]
- then
- 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);
- else
- pkill --signal SIGINT wf-recorder
- fi
|