Kill flameshot process once screen captured
This commit is contained in:
parent
b51055d669
commit
1caa8535ae
|
@ -154,6 +154,9 @@ Capture with gui."
|
||||||
### Store the clipboard content to a new image file
|
### 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
|
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 {{{
|
else ## Use Scrot {{{
|
||||||
debug_message "Scrot tool − \
|
debug_message "Scrot tool − \
|
||||||
|
|
|
@ -160,6 +160,9 @@ Capture with gui."
|
||||||
### Store the absolut path of the new image file to clipboard
|
### 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
|
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 {{{
|
else ## Use Scrot {{{
|
||||||
debug_message "Scrot tool − \
|
debug_message "Scrot tool − \
|
||||||
|
|
Loading…
Reference in New Issue