Kill flameshot process once screen captured

This commit is contained in:
gardouille 2020-12-01 21:07:22 +01:00
parent b51055d669
commit 1caa8535ae
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
2 changed files with 6 additions and 0 deletions

View File

@ -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 \

View File

@ -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 \