Eric P wrote:
> sam ende wrote:
> 
>>i would find it a lot easier to write tutorials and the like if the drop 
>>down menus did not disapear when doing screenshots, is there a way to 
>>keep them dropped down for screenshots ?
>>
> 
> 
> If you run Linux (or maybe some other unices), try this quick 'n dirty
> script.
> 
> For grabbing the whole screen:
> xwd -root | xwdtopnm 2> /dev/null | pnmtopng 2> /dev/null >
> /home/buffalo/graphics/screenshots/screen_`date +%Y%m%d%H%M_%S`.png
> 
> For grabbing a window (it'll give you a crosshair):
> xwd | xwdtopnm 2> /dev/null | pnmtopng 2> /dev/null >
> /home/buffalo/graphics/screenshots/screen_`date +%Y%m%d%H%M_%S`.png
> 
> 0. Make sure you have the 'netpbm' package installed
> 1. Copy line (above) into its own file
> 2. chmod 755 filename
> 3. place it in your ~/bin folder or a global bin folder
> 4. make sure you have a directory called ~/graphics/screenshots
> 5. map both files to a keyboard shortcut via your window manager
> 
> 
> Done.
> 


A minor improvement to the script (I call it 'xwd_screen_grab' on my
computer).  Now, just map your keyboard shortcuts as follows:

For grabbing a single window
xwd_screen_grab

Grab the whole screen
xwd_screen_grab -root

Here's the script:
#!/bin/bash

arg=''

if [ "$1" = "-root" ]; then
  arg='-root'
fi

xwd $arg | xwdtopnm 2> /dev/null | pnmtopng 2> /dev/null >
/home/dit/graphics/screenshots/screen_`date +%Y%m%d%H%M_%S`.png
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Reply via email to