aboutsummaryrefslogtreecommitdiffstats
path: root/sl
diff options
context:
space:
mode:
Diffstat (limited to 'sl')
-rwxr-xr-xsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/sl b/sl
index c5145c0..a788d18 100755
--- a/sl
+++ b/sl
@@ -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 "$TMPDIR"/"$file"
+optipng "$TMPDIR"/"$file"
mv "$TMPDIR"/"$file" "$HOME"/dumpdir/"$file"