
hey!
I must admit I'm a mediocre Nine Inch Nails fan, but my GF is a huuge one.
So she told me about the proposed release date, showed me a simple web site that
sports a count down and told me something in the lines of:
"If you are coding gimmicks all day (she meant widgets/desklets/docklets), can't you
do that for me too?"
So, the NINawait config was born, my first SysStats config created from scratch.
Of course, its heavily scripted but lightweight.
And its reusable:
Specify in the text overlay's selector:
date|beforetext|aftertext
date:
this is the date you are awaiting. For it to be consistent in different locales,
specify it as such:
2005-12-31 23:59:59
this will await silvester, for example.
beforetext
Some wildcards are replaced, e.g.
Still $d days,$n$h:$m:$s.$t$n to go.
this will expand to:
Still 98 days,
04:16:55.766
to go.
aftertext
This text will be displayed if the awaited event has come.
Putting it all together, the selector would look like:
2005-12-31 23:59:59|Still $d days,$n$h:$m:$s.$t$n to go.|Release Party!
However, there are 2 minor bugs in SysStats need to get fixed before you can get the full joy out of the script:
- The selector entry space is limited, so I needed to trim the selector to:
2005-5-3|still$n$d days,$n$h:$m$n to go|NINtime
You can workaround this by editing the larger selector into the script and ignore the chosen selector altogether.
- You can't trigger a script more than once a second, so seconds and milliseconds display makes no sense at all.
Enjoy!
Aqua-Soft Forums