From: Sergey Matveev Date: Sat, 25 Sep 2021 08:00:19 +0000 (+0300) Subject: Ability to screenshot the whole screen X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=fd50b758abf4acdaa9aa5e1647e6801da7058ff4 Ability to screenshot the whole screen --- diff --git a/bin/bin/mkss b/bin/bin/mkss index 54aecf9..11d9d42 100755 --- a/bin/bin/mkss +++ b/bin/bin/mkss @@ -1,9 +1,10 @@ -#!/bin/sh -ex +#!/bin/sh -e sleep 1 tmp=`mktemp` trap "rm -f $tmp $tmp.png $tmp.webp $tmp.txt" HUP PIPE INT QUIT TERM EXIT -import $tmp.png +[ "$1" = "root" ] && root="-window root" || root="" +import $root $tmp.png cwebpl.sh -o $tmp.webp $tmp.png paster-tls $tmp.webp > $tmp.txt xmessage -file $tmp.txt