blob: 88c72f5a3cde156a99d9fd17fc02c0da28083f75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
export def shot [] {
maim -s $"($env.SCREENS_PATH)/(date now | format date %s)-screen.png"
}
export def shoot [--duration: int, --delay: int] {
mut args = []
if $duration != null {
$args = $args | append "-t" | append $duration
}
if $delay != null {
$args = $args | append $"-ss" | append $delay
}
ffmpeg -video_size 1900x1080 -framerate 25 -f x11grab -i :0.0+0,0 -f alsa -ac 2 -i pulse -acodec aac -vf setpts=N/FR/TB ...$args $"($env.RECORDINGS_PATH)(date now | format date %s)-recording.mp4"
}
|