diff options
-rwxr-xr-x | sl | 3 | ||||
-rwxr-xr-x | ssl | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -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" @@ -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" |