Create example start recording script

This commit is contained in:
dec05eba
2024-08-15 19:53:07 +02:00
parent d5e5490164
commit f297a92e05
2 changed files with 6 additions and 1 deletions

5
scripts/start-recording.sh Executable file
View File

@@ -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"