mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-28 13:48:25 +02:00
weather: update to use met.no
This commit is contained in:
parent
dd885314b1
commit
c1e81df684
3 changed files with 58 additions and 60 deletions
|
@ -108,7 +108,7 @@ def on_overlay_draw(widget, cctx, ctx):
|
|||
|
||||
# Weather
|
||||
# We can have polybar markups in it. We assume %{Tx} means to use
|
||||
# Font Awesome 6 and we ignore font color change. The parsing is
|
||||
# Weather Icons and we ignore font color change. The parsing is
|
||||
# quite basic.
|
||||
if ctx.weather:
|
||||
data = re.sub(r"%{F[#\d+-]+?}", "", ctx.weather)
|
||||
|
@ -120,7 +120,7 @@ def on_overlay_draw(widget, cctx, ctx):
|
|||
font = ctx.font_family
|
||||
continue
|
||||
elif chunk.startswith("%{T"):
|
||||
font = "Font Awesome 6 Pro"
|
||||
font = "Weather Icons"
|
||||
continue
|
||||
elif not chunk:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue