summaryrefslogtreecommitdiffstats
path: root/examples/xmobar
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-25 19:01:38 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-25 19:01:38 +0100
commitdd2085bf85975a82a4eeb07118de64e389994939 (patch)
tree47cd84aaaa518a1d64a6dfec87d39267d286e3cb /examples/xmobar
parentm (diff)
downloadblueshift-dd2085bf85975a82a4eeb07118de64e389994939.tar.gz
blueshift-dd2085bf85975a82a4eeb07118de64e389994939.tar.bz2
blueshift-dd2085bf85975a82a4eeb07118de64e389994939.tar.xz
print colour temperature in xmobar example
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--examples/xmobar2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmobar b/examples/xmobar
index 62015e7..9473e03 100644
--- a/examples/xmobar
+++ b/examples/xmobar
@@ -27,5 +27,5 @@ whitepoint = whitepoint[0] + whitepoint[1] + whitepoint[2]
# Print information.
-print('<fc=#%s>%.1f</fc>° (%.2f%%)' % (whitepoint, elevation, dayness))
+print('<fc=#%s>%i</fc>K (%.1f° %.2f%%)' % (whitepoint, int(temperature_now), elevation, dayness))