From 0af12afc3aa4b8de110efa195c94b80c833a8e7c Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 1 Dec 2020 16:27:21 +0100 Subject: [PATCH] Add flameshot tool --- printscreen | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/printscreen b/printscreen index fd9cf5a..50011b9 100755 --- a/printscreen +++ b/printscreen @@ -1,6 +1,16 @@ #!/bin/sh -# -s : Interactively select a window or rectangle with the mouse. -# -e : Directly open the screenshot with Gimp then delete it +## Try to use flameshot to get a screenshot +### 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