Skip to content

scrot appends filename numbering suffix #1

@zormit

Description

@zormit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions