blob: bb4810421d8ff51e93597aca4988f346d491d5ce (
plain)
1
2
3
4
5
6
7
8
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
|