Rox Clock

Miscellaneous tools
Post Reply
Message
Author
jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

Rox Clock

#1 Post by jamesbond »

There are already tons of other clocks here, and we already have pwidgets etc ... so why the new clock?

Just for the fun of it :)

This pet expands into /root/rox-clock, a Rox application. Click (or double-click depending on your settings, or right-click then choose "Start") to start the clock. It will update by the minute.

You can move/copy it over to different folders if you wish, and you can also drag it to the Rox desktop (you need to mouse over your cursor over the clock for it to update).

You can have multiple copies of the clock, each one is controlled (=start/stop) independently. If you have a little flair in scripting, you can easily adjust the clock to run in a different timezone than yours, giving you a series of world clocks :)

You can change the clock face by editing the clock.svg file within the application. The original clock face is from wikimedia: https://commons.wikimedia.org/wiki/File ... _clock.svg, and I commented out the seconds hand. You can add the seconds hand back if you wish; the reason I disabled it is because it will create unnecessary load on the system; also the display will start to flicker if your update the display every second.

The shell scripts use /bin/sh, but if you have a smaller shell, use /bin/ash or /bin/dash so that the clock doesn't eat a lot of your memory just to run the clock. I personally use dash.

Enjoy!

Note: Since this is a Rox application, you definitely need ROX-Filer. It won't work on puplets that don't have Rox.

Note: Thanks to technosaurus for this dynamic SVG idea.

EDIT: If you put the clock on Rox desktop, you need to mouse over it for it to update. Otherwise it will update itself sometimes, but very slowly and irregularly.
Attachments
rox-clock-1.pet
(1.95 KiB) Downloaded 974 times
rox-clock2.png
Rox Clock on desktop
(54.71 KiB) Downloaded 1507 times
rox-clock1.png
Rox Clock inside Rox folder.
(18.84 KiB) Downloaded 1671 times
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#2 Post by SFR »

I just saw this little app and couldn't resist - very nice piece of code. :)
If you put the clock on Rox desktop, you need to mouse over it for it to update. Otherwise it will update itself sometimes, but very slowly and irregularly.
Dunno why, but all clocks are being updated regularly, when placed on the pinboard here on Slacko-5.4; no problems at all...

BTW, the pet is xz compressed? Petget in Slacko wasn't able to install it, I had to re-pack it.

Thanks & Greetings!
Attachments
screenshot.png
(22.56 KiB) Downloaded 1558 times
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#3 Post by RSH »

Hi.

LazY Puppy also could not install this using the petget. I have made a new package that installs in LazY Puppy (and hopefully all no XZ compression using) Puppies.

RSH
Attachments
ROX-Clock-No-XZ.pet
(2.06 KiB) Downloaded 836 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#4 Post by jamesbond »

Yes, sorry about the xz compression. I forgot that Fatdog's dir2pet created xz-compressed pets :oops:
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#5 Post by nooby »

Sorry Billtoo told me of one by zigbert that most likely would work for me

old text
Rox Clock work in FatDog 64?
Last edited by nooby on Tue 01 Jan 2013, 15:36, edited 1 time in total.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#6 Post by vovchik »

Dear jamesbond,

Happy New Year. What a nice little app. Thanks!

With kind regards,
vovchik

Post Reply