aboutsummaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
Diffstat (limited to 'ssl')
-rwxr-xr-xssl3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl b/ssl
index b052033..21f438b 100755
--- a/ssl
+++ b/ssl
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
##
-# Create a screenshot using scrot, then dump it in ~/dumpdir for
+# Create a screenshot using scrot, optipng it, then dump it in ~/dumpdir for
# dumpwatch to upload it to the appropriate server.
#
# This script requires dumpwatch to already be running.
@@ -16,5 +16,6 @@ fi
file=$(mktemp -u XXXXXXXXXX.png)
scrot -s "$TMPDIR"/"$file"
+optipng "$TMPDIR"/"$file"
mv "$TMPDIR"/"$file" "$HOME"/dumpdir/"$file"