diff --git a/polybar/clock.py b/polybar/clock.py index 0b27b49..cf1c160 100755 --- a/polybar/clock.py +++ b/polybar/clock.py @@ -6,6 +6,9 @@ import time import pytz +FILL_CLOCK_FACE = False + + try: # if len(sys.argv) < 3: # print("Usage: {scriptname} timezone_left timezone_right".format(scriptname=sys.argv[0]), file=sys.stderr) @@ -26,7 +29,10 @@ try: minute = minutehands[ t.minute // 5 ] hour = hourhands [ t.hour % 12 ] - return color_for(t) + "%{T8}%{F}%{F#000}%{O-27}" + hour + "%{O-27}" + minute + "%{T-}%{F}" + if FILL_CLOCK_FACE: + return color_for(t) + "%{T8}%{F#000}%{O-27}" + hour + "%{O-27}" + minute + "%{T-}%{F}" + else: + return "%{O1}%{T8}" + color_for(t) + "%{O-27}" + hour + "%{O-27}" + minute + "%{T-}%{F}" def color_for(t):