diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-10-12 17:15:08 +0000 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-10-12 17:15:08 +0000 |
| commit | f26c55d5bea46e0b4c0bed3ef3a1258b1b9e82dc (patch) | |
| tree | 4a0f2284ae05771568efe2dbc323233c10f444bd /mut/bin/recordwin | |
| parent | 7134976e1bd1ab8f6f0a85e9efe23b85f0d54250 (diff) | |
update
Diffstat (limited to 'mut/bin/recordwin')
| -rwxr-xr-x | mut/bin/recordwin | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mut/bin/recordwin b/mut/bin/recordwin new file mode 100755 index 0000000..bb48104 --- /dev/null +++ b/mut/bin/recordwin @@ -0,0 +1,9 @@ +#!/bin/sh +if pidof ffmpeg; then + notify-send ffmpeg "killing current recording" + pkill --signal=TERM ffmpeg +else + notify-send ffmpeg "Start recording" + ffmpeg -f x11grab $(xdotool getwindowfocus getwindowgeometry | tr '\n' ' ' | gawk '{print "-video_size " $8 " -i +"$4 }') -y ~/recording.webm + notify-send ffmpeg "saved recording to ~/recording.webm" +fi |
