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: Timestamp X Window Snapshot, and set up xwud icon for viewing them< Next Oldest | Next Newest >
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: May 29 2008,00:17 QUOTE

The current entry for the X screendump (jwm) is:
Code Sample
<Program icon="picture.xpm" label="X Window Snapshot"> xwd -out myscreen.xwd; xwud -raw -in myscreen.xwd </Program>


This means that myscreen.xwd is rewritten when this menu item is invoked more than once. How about changing it so it gets timestamped (maybe not as excessively as mine is below: YYYYMMDDHHMMSS) so users don't have to copy anything they want to save to another file before taking another?
Code Sample

<Program icon="picture.xpm" label="X Window Snapshot"> xwd -out myscreen-$(date +%Y%m%d%H%M%S).xwd; xwud -raw -in myscreen-$(date +%Y%m%d%H%M%S).xwd</Program>

Also, is it necessary to immediately display what you can already see? I know xzgv doesn't work with xwd files, but maybe create a script/dfm icon so they can drag and drop on xwud to view .xwd screenshots?


--------------
"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 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: May 29 2008,00:57 QUOTE

Timestamp sounds good.

The reason both input and output were used in the menu of X snapshot was to give feedback that something actually occured. Prior to this, users would complain that X snapshoot was not working, as the display option is not well known.

Perhaps a simple dfmext association will make the display option much easier.


Edited by roberts on May 29 2008,00:57
Back to top
Profile PM WEB 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: May 29 2008,12:38 QUOTE

I think this should work better if you want to leave in xwud for when a shot is taken in later milliseconds just before %m rolls over and %S is 00 again. Drawback: leaves two copies of the most recent shot. Or you could mv it instead, I guess.
Code Sample
<Program icon="picture.xpm" label="X Window Snapshot"> xwd -out myscreen.xwd; xwud -raw -in myscreen.xwd; cp myscreen.xwd myscreen-$(date +%Y%m%d%H%M%S).xwd</Program>


--------------
"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 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: May 29 2008,15:42 QUOTE

I have taken xwud out and placed it in the dfmext as an association.
Back to top
Profile PM WEB 
3 replies since May 29 2008,00:17 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Timestamp 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