Not sure if this is for every setup, so I'm creating an issue instead of a PR:
I had to change the following to make it work for me:
diff --git a/capture-workspace b/capture-workspace
index 928ddfb..f03a176 100755
--- a/capture-workspace
+++ b/capture-workspace
@@ -11,6 +11,6 @@ jq -nS \
cmd: \"$(ps h -o cmd -q $(xdotool getactivewindow getwindowpid))\",
window_name: \"$(xdotool getactivewindow getwindowname)\" }" \
> ~/Pictures/Screenshots/${DATE}/"${DATETIME}".json
-scrot --multidisp --silent ${TEMPFILE}
+scrot --multidisp --silent --overwrite ${TEMPFILE}
pngcrush -q ${TEMPFILE} ~/Pictures/Screenshots/${DATE}/"${DATETIME}".png
rm ${TEMPFILE}
otherwise, pngcrush did not find ${TEMPFILE}, as scrot modified the filename by adding a suffix.
Not sure if this is for every setup, so I'm creating an issue instead of a PR:
I had to change the following to make it work for me:
otherwise,
pngcrushdid not find${TEMPFILE}, asscrotmodified the filename by adding a suffix.