Page 1 of 1
SimpleSHOT
Posted: Fri 08 Jul 2011, 15:47
by stu90
Here is a simple Yad front end gui for scrot that enables you to take desktop screenshots.
Shot type:
Full screen (the whole screen)
Top Window (top / active window)
Selection (draw a retangle on the screen and capture that)
Format:
.jpg (image format)
.png (image format)
Quality:
0-100 (image quality)
Delay:
0-100 (delay in seconds)
Save in:
directory to save images in (remebers directory choice)
Name:
default is time + date ( you can enter your own screen shot name)
Dependencies:
Yad - Available for download on this link (lucid puppy .pet):
http://www.murga-linux.com/puppy/viewto ... 647#539647
Scrot - Available for download below:
Posted: Fri 08 Jul 2011, 19:08
by Sylvander
Would it be possible to include the cursor in the screenshot?
I can't get this to run [in Lupu-525] for lack of the dependency = libimlib2.so.1
Posted: Fri 08 Jul 2011, 21:08
by stu90
Sylvander wrote:Would it be possible to include the cursor in the screenshot?
I can't get this to run [in Lupu-525] for lack of the dependency = libimlib2.so.1
Hi Sylvander,
Not sure about the mouse pointer - i will have a look at the man pages see what i can find out.
regarding libimlib2.so.1 it is a (missing) dependency for scrot - i am watching a film right now but i will make a .pet for scrot wiht included dependancies after and upload.
cheers.
Re: SimpleSHOT
Posted: Sat 09 Jul 2011, 13:53
by L18L
Hi stu90,
you wrote:Here is a simple Yad front end gui....
and I am here again trying to make it simple
r to use
Including the cursor... would be great !
Though I did not have a need in making screenshots in another way as
using the default mtpaint thing, scaled, and png converted to indexed, I have been playing some hours with simpleshot in drake01:
Please copy the next lines
Code: Select all
# show result
image="$GDIR/$GNAME.$t"
yad --title="$TITLE Result: $image" --image="$image" \
--button="display in Vienior:2" \
--button="scale in Mtpaint:1" \
--button="gtk-quit:0"
next_app=$?
kill `pidof viewnior` 2>/dev/null # avoid multiple instances
case $next_app in
1) mtpaint $image && $RESTART && exit ;;
2) viewnior $image &
$RESTART && exit ;;
esac
;;
# end show result
to the end of the script between
and
Have fun
cheers
PS: my screenshot has an invalid filename
Edit
PPS: my screenshot
had an invalid filename
before
converting to indexed filesize was 344k
Posted: Sat 09 Jul 2011, 15:19
by stu90
Hello,
I have a look through scrot man and --help and unfortunately couldn't find anything with regards to capturing the mouse cursor
As ever L18L, nice update
i changed it about a bit more and added the option to delete the screen shot - and the preview image now uses a thumbnail instead of the original image to stop the preview window going very large on full screen shots.
Yes maybe something else could be used for a default image name?
cheers.
SimpleSHOT
Posted: Sat 09 Jul 2011, 15:40
by L18L
stu90 wrote:something else could be used for a default image name?
Date is good
but
year-month-date-hour-minute (ISO date)
would sort it correctly
I think it is just the colon that is not allowing upload on the forum.
Cheers
Re: SimpleSHOT
Posted: Sat 09 Jul 2011, 17:50
by L18L
I think the ISO date is nothing for simple apps.
We need just avoid overwriting existing files.
Code: Select all
## get screen shot name ##
GNAME=`echo $SETUP | cut -d "|" -f 6 | tr ' ' '_' `
if [ ! "$GNAME" ]; then
ERROR1=$(yad --title="$TITLE Info" --text=" Make sure to enter a screen shot name " --button="gtk-go-back")
$RESTART && exit
fi
# the following is new:
if [ -e $GDIR/$GNAME.$t ]; then
ERROR2=$(yad --title="$TITLE Info" --text=" $GNAME already exists in $GDIR. " --button="gtk-go-back")
$RESTART && exit
fi
Or ask if overwrite
and in case of "go-back" not loose the previous input.
Cheers
Posted: Sat 09 Jul 2011, 18:06
by alienjeff
Nice. Lots of features. However, I believe I'll stick with tapping my meta and z keys to take fast screenshots. No opening and waiting for a GUI, nor maneuvering around and clicking a mouse.
Remember: meta - z
Hotkeys FTW
Not in the menu !
Posted: Mon 12 Aug 2013, 21:11
by Pelo
Is it possible to create a menu entry in the pet (graphics) ?
Thee aim is to go fast.
I use screeny with just a button to click in bottom tool bar.
I opened Simpleshot with the terminal, that is not wonderful