aboutsummaryrefslogtreecommitdiff
path: root/scripts/start-recording.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-15 19:53:07 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-15 19:53:07 +0200
commitf297a92e05e3e57b1b9350b64c8407f4a1436f09 (patch)
tree45a4bcfd123130a3373b6b3e143a41a56410f996 /scripts/start-recording.sh
parentd5e5490164755425fcfe69746f6a79645695c8d6 (diff)
Create example start recording script
Diffstat (limited to 'scripts/start-recording.sh')
-rwxr-xr-xscripts/start-recording.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/start-recording.sh b/scripts/start-recording.sh
new file mode 100755
index 0000000..455065e
--- /dev/null
+++ b/scripts/start-recording.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+pidof -q gpu-screen-recorder && exit 1
+video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"
+gpu-screen-recorder -w screen -f 60 -a "$(pactl get-default-sink).monitor" -o "$video"