diff --git a/printscreen b/printscreen index 08d1b05..d27ada1 100755 --- a/printscreen +++ b/printscreen @@ -154,6 +154,9 @@ Capture with gui." ### Store the clipboard content to a new image file xclip -out -selection clipboard -t image/png > /tmp/$(date +%Y%m%d-%H%M%S)."${PROGNAME}".png + ### Ensure to kill flameshot once the capture is complete + kill $(pgrep -f -- "/usr/bin/flameshot") + ## }}} else ## Use Scrot {{{ debug_message "Scrot tool − \ diff --git a/screen.to.0x0 b/screen.to.0x0 index a26254b..728bb60 100755 --- a/screen.to.0x0 +++ b/screen.to.0x0 @@ -160,6 +160,9 @@ Capture with gui." ### Store the absolut path of the new image file to clipboard echo "/tmp/$(date +%Y%m%d-%H%M%S).${PROGNAME}.png" | xclip -rmlastnl -selection clipboard + ### Ensure to kill flameshot once the capture is complete + kill $(pgrep -f -- "/usr/bin/flameshot") + ## }}} else ## Use Scrot {{{ debug_message "Scrot tool − \