summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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