diff options
author | ryo <ryo@nopwd.lol> | 2024-10-30 20:10:03 +0000 |
---|---|---|
committer | ryo <ryo@nopwd.lol> | 2024-10-30 20:10:03 +0000 |
commit | cc6d6fcfc6e8403e87dae9f092e61f0edf8e3cc6 (patch) | |
tree | f7f751a92c30b5ef7cf8770004c30479c516fdca /bin/record.sh |
Initial commit
Diffstat (limited to 'bin/record.sh')
-rwxr-xr-x | bin/record.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/record.sh b/bin/record.sh new file mode 100755 index 0000000..be85a2f --- /dev/null +++ b/bin/record.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env dash + +if [ $# -ne 1 ]; then + echo "bad usage" + exit +fi + +if [ -n "$(pgrep ffmpeg)" ]; then + echo "Already recording" + exit +fi + +dunstify "Recording Sarted" +ffmpeg -v warning -f x11grab -probesize 10M -framerate 25 -i $DISPLAY -crf 30 $1.mkv + +dunstify "Recording Stopped" |