On Saturday 26 September 2009 04:47:08 Joe(theWordy)Philbrook wrote: > It would appear that on Sep 26, Christopher Michael did say: > > Hmm, could have found a bugger there. As I recall, that option was > > working just fine in the past...I'll have to run some tests here and > > see. > > However I note, that I was using my Sabayon 4.2 (64 bit) install when I > failed to get the "--window" option to work properly. I've since tried > it on my (64 bit) Kubuntu, Jaunty installation, And on Kubuntu the > --window option works. So it's probably something with the unofficial > gentoo entropy package x11-misc/emprint-9999 rather than an actual > enlightenment issue. > > The --beep option on the other hand remains silent on both linux > versions. Which of course figures, since most times I'd want the whole > screen and unless I use the -w or -r option, the only way aside from a > perfect sense of timing to know when the snapshot is actually taken is > to hope I spot the moment of hard drive activity when it writes the > .png file <sigh> Oh well, I can, after all, just set a 30 second > delay. Then quickly switch desktops,( or if I want a snap of the > current desktop, iconify the terminal I'm running emprint from,) And > then make any needed final adjustments to the screen appearance. (Such > as perhaps opening a menu I want displayed...) And then clock watch > for another full 30 seconds, before I assume it's done... > > It would appear that on Sep 25, Christopher Michael did also say: > > If you are looking for an actual E17 module, check > > e/trunk/E-MODULES-EXTRA/screenshot which creates a gadget you can add > > to a shelf and allows taking screenshots very easily. It has some > > configuration options (as most modules do), but these are just > > options which get passed to 'emprint' . The screenshot module is > > there more for simplicity of taking shots (ie: just click the camera > > and presto). > > Yeah, though I tend to only install what I can get with the package > management systems for whichever distro I'm using because *_I_* can't > handle dependency hell... But I was able to get the package: > x11-plugins/e_modules-screenshot-9999 on my gentoo based Sabayon > installation, And with this in my Kubuntu "/etc/apt/sources.list": > "deb http://packages.enlightenment.org/ubuntu jaunty main extras" > I was able to get > "emodule-screenshot_0.16.999.062+svn41588-1_amd64.deb" > > But actually I generally find keyboard methods easier than mouse based > ones, So I'm more likely to use emprint directly than to wrestle the > mousepointer over to the camera gadget... If I find the time I might > even write a bash script wrapper for it that specifies an output file. > That is if I can dig up my old notes on using some kind of loop to > increment sequencenum until the test: [ -f > ${basefilename}${sequencenum}.png ] fails. (Hmmnn for that matter if I > don't want to put the actual emprint command in an "else" list, is [ ! > -f ${basefilename}${sequencenum}.png ] the correct syntax ???) Well > anyway, If/when I get such a script working I might even assign it a > key binding... > > > Let me know if you have issues. > > Nah, it's all good... > > Thanks! >
Here is part of my bash script which takes care of taking screenshots. It uses imlib2_grab. The "displaymessage" is just a wrapper and it uses whichever one of xmessage, gxmessage, Xdialog or kdialog it detects on the system. You can insert your own there :P I usually bind this to my PrintScreen button for a default 7sec delay and I bind it to my Pause button (calling it with --now switch) for instant window grabs. You can replace imlib2_grab with emprint or whatever other command you want (I had import earlier, but imlib2_grab is faster :P). ----------------------------------------------------------------------------------------- # Query the image quality QUALITY="$(displaymessage --radiolist "What is the quality of screenshot you desire?" "png" "Lossless Quality (png)" on "jpeg" "Lossy Quality (jpeg)" off --title "Select Quality of screenshot" --center)" [[ -z "$QUALITY" ]] && exit # Query the filename FILENAME="$(displaymessage --savefile "$HOME" "*.$QUALITY" --title "Enter the filename")" [[ -z "$FILENAME" ]] && FILENAME="$HOME/screenshot.$QUALITY"; # Make filename idiot proof and monkey proof [[ "${FILENAME}" != *.$QUALITY ]] && \ FILENAME="${FILENAME}.$QUALITY"; # Take the screenshot if [[ -z $NOW ]]; then sleep $SLEEP; imlib2_grab "$FILENAME" || die "Failed to take screenshot"; else WIN_ID="$(xwininfo | sed -n "s/^.*Window id: \([^ ]*\) \"\(.*\)\"$/\1/p")" imlib2_grab -id $WIN_ID "$FILENAME" || die "Failed to take screenshot"; fi unset QUALITY WIN_ID # View file? displaymessage --yesno "View the screenshot saved in $FILENAME?" --center [[ $? -eq 0 ]] && feh -x "$FILENAME" ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users