Add screenshot script

This commit is contained in:
Vincent Ollivier 2023-06-21 10:32:43 +02:00
parent cd47755edd
commit 393ed0f14e
1 changed files with 8 additions and 0 deletions

8
run/screenshot.sh Normal file
View File

@ -0,0 +1,8 @@
if [ $# -eq 0 ]; then
echo "Usage: screenshot.sh <name>"
exit 1
fi
nc -N 127.0.0.1 7777 <<< "screendump $1.ppm"
convert "$1.ppm" "$1.png"
optipng "$1.png"
feh "$1.png"