From 4f45e2f9ab3a8696bf7e03f15f5329b8096d6696 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Sun, 19 Aug 2018 01:54:30 +0200 Subject: [PATCH] [clock.py] Fix colours --- polybar/clock.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/polybar/clock.py b/polybar/clock.py index d230af7..27b4762 100755 --- a/polybar/clock.py +++ b/polybar/clock.py @@ -26,7 +26,7 @@ try: minute = minutehands[ t.minute // 5 ] hour = hourhands [ t.hour % 12 ] - return color_for(t) + "%{T8}%{F#000}%{O-24}" + hour + "%{O-24}" + minute + "%{T-}%{F}" + return color_for(t) + "%{T8}%{F}%{F#000}%{O-24}" + hour + "%{O-24}" + minute + "%{T-}%{F}" def color_for(t): @@ -51,20 +51,23 @@ try: localcolor = color_for(localnow) print( + localcolor + localnow.strftime("%A") + - " " + + "%{F} " + # face_for(leftnow) + - " %{T4}" + localcolor + localnow.strftime("%H") + + " %{T4}" + localcolor + localnow.strftime("%H") + "%{F}" "%{O2}%{T8}" + face_for(localnow) + - "%{O2}%{T4}" + localcolor + localnow.strftime("%M") + "%{T-}" + + "%{O2}%{T4}" + localcolor + localnow.strftime("%M") + "%{T-}%{F}" + " " + # face_for(rightnow) + " " + " " + - localnow.strftime("%d %b"), + localcolor + + localnow.strftime("%d %b") + + "%{F}", flush = True )