aboutsummaryrefslogtreecommitdiffstats
path: root/examples/moderate
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-03 23:49:09 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-03 23:49:40 +0100
commit1c1451871d147c999d64b291f6ca88f0ab6c4710 (patch)
tree1fbf596a8db78bdf0f6b85c0038c15ca4507690a /examples/moderate
parentupdate todo (diff)
downloadxpybar-1c1451871d147c999d64b291f6ca88f0ab6c4710.tar.gz
xpybar-1c1451871d147c999d64b291f6ca88f0ab6c4710.tar.bz2
xpybar-1c1451871d147c999d64b291f6ca88f0ab6c4710.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/moderate')
-rw-r--r--examples/moderate4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/moderate b/examples/moderate
index 5a2cfab..3c14fe3 100644
--- a/examples/moderate
+++ b/examples/moderate
@@ -196,9 +196,11 @@ def chase():
solar_ = os.environ['HOME'] + '/.xpybar.sun'
def sun():
try:
- return Solar(solar_).output
+ return 'Sun: %s' % Solar(solar_).output
except:
return '¿Cannot get solar information?'
+
+
functions = [ Sometimes(lambda : clock_.read(), 1 * 2),
lambda : time.time() % 1,
Sometimes(users, 1 * 2),