diff options
| author | JackJ30 <jackqjamison@proton.me> | 2025-03-11 00:30:35 -0400 |
|---|---|---|
| committer | JackJ30 <jackqjamison@proton.me> | 2025-03-11 00:30:35 -0400 |
| commit | 32aa6dc55f94dfead4c0db1c4797aa764df163e2 (patch) | |
| tree | 1c3a5e1858e9e674c31361512ac6469c3b54e148 | |
| parent | 53e5b6b756e7380ed47809a1372fb1aaebbdcd50 (diff) | |
record script
| -rwxr-xr-x | scripts/record | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/record b/scripts/record new file mode 100755 index 0000000..077209d --- /dev/null +++ b/scripts/record @@ -0,0 +1,18 @@ +#!/bin/env bash + +pgrep -x "wf-recorder" && pkill -INT -x wf-recorder && notify-send -h string:wf-recorder:record -t 1000 "Finished Recording" && exit 0 + +notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>3</b></i></span>" + +sleep 1 + +notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>2</b></i></span>" + +sleep 1 + +notify-send -h string:wf-recorder:record -t 950 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>1</b></i></span>" + +sleep 1 + +dateTime=$(date +%m-%d-%Y-%H:%M:%S) +wf-recorder --bframes max_b_frames -f $HOME/Videos/$dateTime.mp4 |
