The Following User Says Thank You to slarti For This Useful Post: | ||
|
2013-01-16
, 12:12
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#532
|
The Following User Says Thank You to Win7Mac For This Useful Post: | ||
|
2013-01-19
, 03:08
|
Posts: 24 |
Thanked: 13 times |
Joined on Oct 2011
|
#533
|
The Following User Says Thank You to stats0 For This Useful Post: | ||
|
2013-01-19
, 04:03
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#534
|
|
2013-01-19
, 11:04
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#535
|
#!/bin/sh status=$(qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/bme org.freedesktop.Hal.Device.GetProperty battery.charge_level.percentage) if [[ $status -ge 50 ]] then printf "{{green}} $status" fi if [[ $status -ge 25 && $status -le 49 ]] then printf "{{yellow}} $status" fi if [[ $status -le 24 ]] then printf "{{red}} $status" fi
The Following User Says Thank You to Win7Mac For This Useful Post: | ||
|
2013-01-19
, 17:51
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#536
|
#!/bin/sh max_balance=200 mid_balance=90 low_balance=30 echo -n "{{white}}" balance=$(gconftool -g /apps/UssdBalance/currentStrBalance) echo -n $balance balance=${balance%.*} if [ $balance -ge $mid_balance ]; then echo -n "{{green}}" else if [ $balance -ge $low_balance ]; then echo -n "{{yellow}}" else echo -n "{{red}}" fi fi echo -n " {{=" if [ $balance -ge $max_balance ]; then echo -n "1.0" else echo -n "0."$((balance/2)) fi echo -n "}}"
The Following User Says Thank You to coderus For This Useful Post: | ||
|
2013-01-19
, 17:52
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#537
|
#!/bin/sh percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent) echo -n "{{white}}" echo -n $percent echo -n "% {{green}}{{=" if [ $percent -eq 100 ] then echo -n "1.0" else echo -n "0.$percent" fi echo -n "}}" exit
|
2013-01-19
, 19:26
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#539
|
#!/bin/sh status=$(qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/bme org.freedesktop.Hal.Device.GetProperty battery.charge_level.percentage) if [[ $status -ge 50 ]] then echo -n "{{green}} $status % {{=0.$status}}" fi if [[ $status -ge 25 && $status -le 49 ]] then echo -n "{{yellow}} $status % {{=0.$status}}" fi if [[ $status -le 24 ]] then echo -n "{{red}} $status % {{=0.$status}}" fi
|
2013-01-19
, 19:29
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#540
|
It won't show an event if it doesn't have an alarm!!!
- It won't show todos at the moment (easy to fix). Fixed
- It won't show the location because I'm not sure how to silently handle the KeyError exception when there is no 'location' key in the attribute dict.Fixed
- It won't show the calendar name because I don't know where to get a match for the 'notebook' value. It's easy to match manually, but to get it with the script, I don't know where to look for the calendar name.
The others won't be fixed unless someone knows how to access the calendar database, if there is one.
This can be found in https://github.com/harmattan/billboard-scripts.
Last edited by slarti; 2013-01-18 at 19:57.