Add flameshot tool

This commit is contained in:
Jeremy Gardais 2020-12-01 16:27:21 +01:00
parent 67692cfb3e
commit 0af12afc3a
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,16 @@
#!/bin/sh #!/bin/sh
## Try to use flameshot to get a screenshot
### See https://github.com/flameshot-org/flameshot
## Or try to use scrot
if [ "$(command -v flameshot)" ]; then
flameshot gui --path /tmp
else ## Use scrot
# -s: Interactively select a window or rectangle with the mouse. # -s: Interactively select a window or rectangle with the mouse.
# -e: Directly open the screenshot with Gimp then delete it # -e: Directly open the screenshot with Gimp then delete it
scrot -s -m -e 'gimp $f ; mv $f /tmp/' scrot -s -m -e 'gimp $f ; mv $f /tmp/'
fi