all repos — dotfiles @ 9e8e6d1579116e96c5f05e9a76dab8bebbd16b97

linux dotfiles

bin/scripts/record-screen-area

1 2 3 4 5 6
#!/bin/bash

sleep 1
slop=$(slop -f "%x %y %w %h %g %i") || exit 1
read -r X Y W H G ID <<< $slop
sleep 2; ffmpeg -f x11grab -video_size "$W"x"$H" -i :0.0+$X,$Y -f alsa -i default ~/videos/rec`date +%s`.mp4