I've been using the program "gimp" to do screen captures on my new install (openSUSE-11.3 milestone2 with LXDE).
I tried the guidance here but it did not work: http://wiki.lxde.org/en/How_to_make_screenshots
... when press "printscreen" on my keyboard, nothing that I can detect happens. Is this wiki still current? I've double checked, but maybe I missed something in my following the wiki guidance.
How to setup a screen capture
-
- Posts: 116
- Joined: Tue Nov 11, 2008 4:51 pm
Re: How to setup a screen capture
This is your lucky day; I just did this last week. I'm running Fedora 13, but that shouldn't matter. And for sure, there are other ways to do it. HTHoldcpu wrote:I've been using the program "gimp" to do screen captures on my new install (openSUSE-11.3 milestone2 with LXDE).
I tried the guidance here but it did not work: http://wiki.lxde.org/en/How_to_make_screenshots
... when press "printscreen" on my keyboard, nothing that I can detect happens. Is this wiki still current? I've double checked, but maybe I missed something in my following the wiki guidance.
First, I downloaded and installed scrot and its two dependencies; imlib2, and giblib.
Second, I created a program called scrotshooter and placed it in /usr/local/bin:
Code: Select all
#!/bin/bash
msg="Image filename:"
mydir="$HOME/Desktop/"
title="ScreenShooter"
filename=$(zenity --entry --text "$msg" --entry-text $mydir --title title)
scrot -s -b $filename
exit 0
Code: Select all
<!-- ****************************************************** -->
<!-- screenshot added by RockDoctor 20100305 -->
<keybind key="A-Print">
<action name="Execute">
<command>scrotshooter</command>
</action>
</keybind>
<!-- ****************************************************** -->
Geology - It's not rocket science, it's rock science!
Re: How to setup a screen capture
Thanks. That works.
After implementing your recommendation, then pressing <ALT><Printscreen> followed by typing the desired file name, and then clicking on the desktop to capture either the entire screen or the window with focus, works well.
I ended up implementing it on openSUSE-11.3 Milestone4. Since this was a milestone release (of openSUSE) I ended up rebuilding scrot from an src file. I thus had to install imlib2-devel in addition to imlib2, and imlib2-loaders. giblib was not a requirement but I assume that is due to packaging/naming differences between the distro.
After implementing your recommendation, then pressing <ALT><Printscreen> followed by typing the desired file name, and then clicking on the desktop to capture either the entire screen or the window with focus, works well.
I ended up implementing it on openSUSE-11.3 Milestone4. Since this was a milestone release (of openSUSE) I ended up rebuilding scrot from an src file. I thus had to install imlib2-devel in addition to imlib2, and imlib2-loaders. giblib was not a requirement but I assume that is due to packaging/naming differences between the distro.
Re: How to setup a screen capture
I scratched my head over how to get a screen capture without installing the gimp.
Then as I was playing with mtPaint, I noticed a menu option File >> Actions >> Time delayed screenshot.
That was easy!
It gives you a couple of seconds to arrange things before the capture, but I have not yet dug into config files to set options.
I hope this can be of some help to someone else, because I've been wanting a simple screen capture ever since I installed F 14 LXDE.
Thank you.
Then as I was playing with mtPaint, I noticed a menu option File >> Actions >> Time delayed screenshot.
That was easy!
It gives you a couple of seconds to arrange things before the capture, but I have not yet dug into config files to set options.
I hope this can be of some help to someone else, because I've been wanting a simple screen capture ever since I installed F 14 LXDE.
Thank you.
Re: How to setup a screen capture
the scrotshooter script seems a good solution
but i have giblib error: no image grabbed ???
i use synaptic for install scrot
any suggestion to resolve this situation ?
ok!
work fine with imagemagick.
http://tips.webdesign10.com/how-to-take ... untu-linux
but i have giblib error: no image grabbed ???
i use synaptic for install scrot
any suggestion to resolve this situation ?
ok!
work fine with imagemagick.
Code: Select all
import MyScreenshot.png
-
- Posts: 116
- Joined: Tue Nov 11, 2008 4:51 pm
Re: How to setup a screen capture
Turns out I'm currently using ImageMagick (and yad instead of zenity) - not sure why I switched. Anyway, here's my current code FWIW:
Code: Select all
# Program screenshooter3.sh
# Uses ImageMagick
# Copyright (C) 2010 RockDoctor
# Version 3.0.1 20100417
# Version 3.0.2 20100730
# Changelog -
# change to jpg; png capture of selected area not correct
# change all occurrences of .png to $suffix
# define helpmsg after filemsg
suffix=".jpg"
mydir="$HOME/Desktop/"
filemsg="Image filename (without $suffix suffix): "
helpmsg="To capture the whole screen: screenshooter3 -s\n"
helpmsg=$helpmsg"To capture a single window: screenshooter3 -w\n"
helpmsg=$helpmsg"To capture a region: screenshooter3 -r\n\n"
helpmsg=$helpmsg"You will be prompted for a name for your image file\n"
helpmsg=$helpmsg"The suffix "$suffix" will automatically be added to the filename\n"
match="0"
if [ $# -gt 0 ]; then
p=$(echo "$1" | sed -e 's/-//')
match=$(echo "srw" | grep $p)
fi
if [ ${#match} -gt 0 ]; then
if [ $# -eq 2 ]; then
filename=$2$suffix
else
filename=$(yad --entry --text "$filemsg" --entry-text $mydir)$suffix
fi
case "$p" in
"s" )
import -window root $filename;;
"w" )
window_info==$(xwininfo)
window_id=$(echo $window_info | cut -d ':' -f 4 | gawk '{print $1}')
import -window $window_id $filename;;
"r" )
import $filename;;
esac
else
yad --info --text "$helpmsg"
fi
exit 0
Geology - It's not rocket science, it's rock science!