summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJackJ30 <jackqjamison@proton.me>2025-03-11 00:30:35 -0400
committerJackJ30 <jackqjamison@proton.me>2025-03-11 00:30:35 -0400
commit32aa6dc55f94dfead4c0db1c4797aa764df163e2 (patch)
tree1c3a5e1858e9e674c31361512ac6469c3b54e148 /scripts
parent53e5b6b756e7380ed47809a1372fb1aaebbdcd50 (diff)
record script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/record18
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