]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Screenshotter
authorSergey Matveev <stargrave@stargrave.org>
Fri, 24 Sep 2021 11:46:47 +0000 (14:46 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 24 Sep 2021 11:46:47 +0000 (14:46 +0300)
bin/bin/mkss [new file with mode: 0755]

diff --git a/bin/bin/mkss b/bin/bin/mkss
new file mode 100755 (executable)
index 0000000..54aecf9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh -ex
+
+sleep 1
+tmp=`mktemp`
+trap "rm -f $tmp $tmp.png $tmp.webp $tmp.txt" HUP PIPE INT QUIT TERM EXIT
+import $tmp.png
+cwebpl.sh -o $tmp.webp $tmp.png
+paster-tls $tmp.webp > $tmp.txt
+xmessage -file $tmp.txt