commit 0a973d3

hovercats  ·  2023-08-30 02:13:37 +0000 UTC
parent e6c5660
shot: port to rc
1 files changed,  +14, -0
+14, -0
 1@@ -0,0 +1,14 @@
 2+#!/bin/rc
 3+
 4+dir=$HOME/usr/scrots
 5+filename=`{date +scrot-%Y%m%d-%H-%M}
 6+out=$dir/$filename.png
 7+
 8+test -d $dir || mkdir -p $dir
 9+
10+ffmpeg \
11+	-hide_banner -loglevel error \
12+	-f x11grab -r 144 -draw_mouse 0 \
13+	-i $DISPLAY -frames:v 1 $out
14+
15+printf %s\n $out