From 32a1d145c3ef4b3b62c6aa01b995d7e9721249f0 Mon Sep 17 00:00:00 2001 From: Fernando <33039864+tuxslack@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:10:21 -0300 Subject: [PATCH 1/2] Update sparky-screenshot --- bin/sparky-screenshot | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/bin/sparky-screenshot b/bin/sparky-screenshot index 15e9a1c..6d24c40 100755 --- a/bin/sparky-screenshot +++ b/bin/sparky-screenshot @@ -6,6 +6,17 @@ # Created by Paweł "pavroo" Pijanowski 2013/06/30 # Copyright 2013-2024 under the GNU GPL2 License # Last update 2024/07/29 by pavroo +# Last update 2024/11/18 by Fernando Souza - https://www.youtube.com/@fernandosuporte + +which yad || exit +which scrot || exit + + +# programa="gthumb" +programa="gpicview" + +which "$programa" || exit + # get default's locale file DEFLOCDIR="/usr/share/sparky/sparky-screenshot" @@ -76,19 +87,19 @@ fi } screenshot0menu () { -scrot 'screenshot_%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/ & gpicview ~/$f' +scrot 'screenshot_%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/ & "$programa" ~/$f' mainmenu } screenshot10menu () { -scrot -d 10 'screenshot_%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/ & gpicview ~/$f' +scrot -d 10 'screenshot_%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/ & "$programa" ~/$f' mainmenu } screenshotSmenu () { -scrot -s 'screenshot_%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/ & gpicview ~/$f' +scrot -s 'screenshot_%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/ & "$programa" ~/$f' mainmenu } From 403ceac9a8801da4b7050a295fedc1037d9bb36e Mon Sep 17 00:00:00 2001 From: Fernando <33039864+tuxslack@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:17:18 -0300 Subject: [PATCH 2/2] Update sparky-screenshot --- bin/sparky-screenshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sparky-screenshot b/bin/sparky-screenshot index 6d24c40..7d15701 100755 --- a/bin/sparky-screenshot +++ b/bin/sparky-screenshot @@ -56,7 +56,7 @@ else . $DEFLOCDIR/en fi -DIALOG="yad --window-icon=applets-screenshooter --width=500 --height=300 --center" +DIALOG="yad --center --window-icon=applets-screenshooter --width=500 --height=300 --center" TITLE="--always-print-result --dialog-sep --image=applets-screenshooter --title=" TEXT="--text=" MENU="--list --column=$LOCAL1 --column=$LOCAL2"