diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-26 09:44:57 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-26 09:44:57 +0100 |
commit | fad80f98d45fbda40ebb5140517d75c6dbae864f (patch) | |
tree | 2eeffbb0e033775257629d859fcbaebb58acb6cf /examples | |
parent | m gitignore (diff) | |
download | blueshift-fad80f98d45fbda40ebb5140517d75c6dbae864f.tar.gz blueshift-fad80f98d45fbda40ebb5140517d75c6dbae864f.tar.bz2 blueshift-fad80f98d45fbda40ebb5140517d75c6dbae864f.tar.xz |
xmobar example derp: %.2f % dayness => %i % dayness*100
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/xmobar | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmobar b/examples/xmobar index f25d984..c7ec2f7 100644 --- a/examples/xmobar +++ b/examples/xmobar @@ -27,5 +27,5 @@ whitepoint = whitepoint[0] + whitepoint[1] + whitepoint[2] # Print information. -print('<fc=#%s>%i</fc>K %.1f° %.2f%%' % (whitepoint, int(temperature_now), elevation, dayness)) +print('<fc=#%s>%i</fc>K %.1f° %i%%' % (whitepoint, int(temperature_now), elevation, int(dayness * 100))) |