Add flameshot tool
This commit is contained in:
parent
67692cfb3e
commit
0af12afc3a
16
printscreen
16
printscreen
|
@ -1,6 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# -s : Interactively select a window or rectangle with the mouse.
|
## Try to use flameshot to get a screenshot
|
||||||
# -e : Directly open the screenshot with Gimp then delete it
|
### See https://github.com/flameshot-org/flameshot
|
||||||
|
## Or try to use scrot
|
||||||
|
|
||||||
scrot -s -m -e 'gimp $f ; mv $f /tmp/'
|
if [ "$(command -v flameshot)" ]; then
|
||||||
|
flameshot gui --path /tmp
|
||||||
|
|
||||||
|
else ## Use scrot
|
||||||
|
# -s : Interactively select a window or rectangle with the mouse.
|
||||||
|
# -e : Directly open the screenshot with Gimp then delete it
|
||||||
|
|
||||||
|
scrot -s -m -e 'gimp $f ; mv $f /tmp/'
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue