From 1caa8535aef17a13d400c883e335f13ae49f33f1 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 1 Dec 2020 21:07:22 +0100 Subject: [PATCH] Kill flameshot process once screen captured --- printscreen | 3 +++ screen.to.0x0 | 3 +++ 2 files changed, 6 insertions(+) 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 − \