Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
midgard
Dotfilets
Commits
0f2d1939
Unverified
Commit
0f2d1939
authored
Mar 01, 2019
by
M1dgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clock.py] Option to fill the watch face
Nowadays I prefer the clock face black.
parent
bb22bfb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
polybar/clock.py
polybar/clock.py
+7
-1
No files found.
polybar/clock.py
View file @
0f2d1939
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment