Unverified Commit 0f2d1939 authored by M1dgard's avatar M1dgard

[clock.py] Option to fill the watch face

Nowadays I prefer the clock face black.
parent bb22bfb6
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment