The Following User Says Thank You to thp For This Useful Post: | ||
|
2013-01-05
, 11:57
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#452
|
|
2013-01-05
, 16:24
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#453
|
com.nokia.time /com/nokia/time com.nokia.time.add_event(QDBus RawType::(iuuuuus(a{ss} x)
|
2013-01-05
, 16:25
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#454
|
Thanks, the Bluetooth status icon scripts have been merged. I wonder if we should also (in a subdirectory) include scripts such as resetting the data counters, forcing the update by re-setting the text, etc.. in the "billboard-scripts" repository, even if some of them don't really depend on Billboard - what do you think?
The Following User Says Thank You to slarti For This Useful Post: | ||
|
2013-01-07
, 11:49
|
Posts: 12 |
Thanked: 16 times |
Joined on May 2010
@ Sweden
|
#455
|
|
2013-01-08
, 13:15
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#456
|
I would like a 'nameday' (swedish) script, it would be nice to show it on the Billboard screen.
~ $ cat nameday.txt 01.01. Nyårsdagen 02.01. Svea ... 08.01. Erland ... ~ $ awk "/^$(date +%d.%m.)/ { print "'$2'" }" nameday.txt Erland
The Following 3 Users Say Thank You to thp For This Useful Post: | ||
|
2013-01-08
, 13:35
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#457
|
The Following User Says Thank You to coderus For This Useful Post: | ||
|
2013-01-08
, 16:04
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#458
|
|
2013-01-08
, 18:38
|
Posts: 498 |
Thanked: 836 times |
Joined on Jun 2012
@ Finland
|
#459
|
|
2013-01-08
, 18:47
|
Posts: 12 |
Thanked: 16 times |
Joined on May 2010
@ Sweden
|
#460
|
If by "nameday" you mean something like this:
http://stjarnhimlen.se/ndag/ndag2001.html
Then you could start by transforming that page into a text file (one day per line) in a way that you can parse by a script and then write a small shell script that greps the right day out of it, e.g.:
So the "nameday.txt" contains the names on each line (DD.MM. NAME), and the awk command gets today's name based on that. I've added a script to billboard-scripts, but you will have to write (copy'n'paste or process) your nameday.txt yourselfCode:~ $ cat nameday.txt 01.01. Nyårsdagen 02.01. Svea ... 08.01. Erland ... ~ $ awk "/^$(date +%d.%m.)/ { print "'$2'" }" nameday.txt Erland
{propertyname?abc} is "output abc if propertyname is not empty"
{propertyname!abc} is "output abc if propertyname is empty"
The "not empty" part is also why {wazapp-status?abc} doesn't do what you expect - it won't be empty when you are offline (it will evaluate to "offline" instead).
The reason why the "?" doesn't output the property name is that you can do something like this: