+os/arch/bin/rec: record selected area on screen
This commit is contained in:
parent
65afe7a464
commit
974421c560
10
os/arch/bin/rec
Executable file
10
os/arch/bin/rec
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Select a region and record it.
|
||||
|
||||
read -r X Y W H G ID < <(slop -f "%x %y %w %h %g %i")
|
||||
dest=${1:-$(mktemp -t recXXX.webm)}
|
||||
|
||||
ffmpeg -f x11grab -s "$W"x"$H" -i :0.0+$X,$Y -f alsa "$dest"
|
||||
|
||||
# vim:set ft=sh:
|
Loading…
Reference in a new issue