The time now is Sat 25 May 2013, 20:13
All times are UTC - 4 |
| Author |
Message |
pa_mcclamrock

Joined: 03 Jun 2005 Posts: 657 Location: Fort Wayne, Indiana, USA
|
Posted: Sat 22 May 2010, 10:59 Post subject:
New mtPaint-snapshot: Wait 2, 5, or 10 sec, or modify |
|
Don't like waiting 10 seconds to arrange your screen for a screenshot, when 2 seconds would do? No problem. Just untar this revised mtpaintsnapshot.sh script, put it in /usr/bin, run it, wait 2 (or 5) seconds instead of 10, and make good use of all those saved seconds. If you want yet another number of seconds, it's as easy for you to modify this script as it was for me. Just look at this code:
| Code: | <button>
<input file icon=\"gtk-refresh\"></input>
<label>Wait 5 Sec</label>
<action>(echo 20; sleep 1 ; echo 40; sleep 1 ; echo 60 ; sleep 1 ; echo 80; sleep 1 ; echo 100 ) | Xdialog --title 'Puppy Screenshot' --beep-after --wrap --screen-center --center --no-buttons --gauge 'Please wait & prepare your screen ' 10 50 100 ; exec mtpaint -s &</action>
<action>exit: Screenshot</action>
</button>
|
On the "action" line, you'll note that the numbers after the "echoes" are percentages of the total time to wait. So, if you wanted 4 instead of 5 seconds, you'd just change "5" to "4" in the label, and change "echo 20" (etc.) to this:
| Code: | | (echo 25; sleep 1 ; echo 50; sleep 1 ; echo 75 ; sleep 1 ; echo 100 ) |
| Description |
|
| Filesize |
10.21 KB |
| Viewed |
427 Time(s) |

|
| Description |
|

Download |
| Filename |
mtpaintsnapshot.sh.tar.gz |
| Filesize |
643 Bytes |
| Downloaded |
329 Time(s) |
_________________ It's stupid to use inferior software for ideological reasons.
--Linus Torvalds
Visit Pa Penguin's Icebox: http://www.pa-mcclamrock.com/icebox.html
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0458s ][ Queries: 13 (0.0133s) ][ GZIP on ] |