Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: x window snapshot, how to take a screenshot< Next Oldest | Next Newest >
ajburch Offline

Group: Members
Posts: 5
Joined: June 2006
Posted: July 07 2008,12:19 QUOTE

I take a bunch of screenshots and was happy to see the 'x window snapshot' app in dsl 4.4 (it may have been there earlier, but I never noticed it). The problem is that I don't know how it works. When you click on this x window snapshot in the menu listing, it turns the cursor into a + sign. Now what? I have tried clicking and dragging, shift clicking, etc. What are the steps and where is the picture saved?


Back to top
Profile PM 
chaostic Offline

Group: Members
Posts: 328
Joined: Mar. 2005
Posted: July 07 2008,12:48 QUOTE
Back to top
Profile PM 
lucky13 Offline

Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: July 07 2008,12:55 QUOTE

Just click your mouse on what you want to capture. If it's a particular window, click on that window. If you want the full desktop, find an empty space on it and click.

The option has been there before 4.4. It just dumps a file (raw x window dump) that you'll need to convert with another application if you want a standard file format like png or jpg. You can use imagemagick (which I use for my screenshots anyway) to do that with the convert command along with whatever options you desire.

$ convert name.xwd filename.png

Or use a wrapper script to do all of them at once either by command line in a directory or drag and drop in dfm:
Code Sample
for DUMPS in *.xwd; do convert $DUMPS ${DUMPS%.xwd}.png; rm $DUMPS; done

You can edit out the rm $DUMPS command if you want to keep the xwd files but they take up lots of room.

edit: Sorry I didn't finish this thought earlier but had to get to a meeting. If you install imagemagick and want screenshots, there's no need to do xwd. Try this instead:
exec import -window root screenshot-$(date +%Y%m%d%H%M%S).png

That can be added as an entry in your menu (.jwmrc) or as a keybinding (.jwmrc-keys) so it can be executed with some keystroke. You can also set it to a dfm icon (maybe add "sleep 5;" before "import") or as a menu button (.jwmrc-tray) if you want. Here's my entry in .jwmrc-keys ("W" for window -- use what you like, and remember it's case-sensitive).
Code Sample
<Key mask="SC" key="W">exec import -window root screenshot-$(date +%Y%m%d%H%M%S).png</Key>

You can use png, gif, bmp, jpg, or whatever you want and imagemagick supports.

"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
2 replies since July 07 2008,12:19 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Quick Reply: x window snapshot

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code