mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 10:18:34 +02:00
xsecurelock: only display weather on first screen
This commit is contained in:
parent
bbf685ac76
commit
64f41c4825
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ def on_overlay_draw(widget, cctx, ctx):
|
||||||
# We can have polybar markups in it. We assume %{Tx} means to use
|
# 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
|
# Font Awesome 6 and we ignore font color change. The parsing is
|
||||||
# quite basic.
|
# quite basic.
|
||||||
if ctx.weather:
|
if ctx.weather and ctx.position == (0, 0):
|
||||||
data = re.sub(r"%{F[#\d+-]+?}", "", ctx.weather)
|
data = re.sub(r"%{F[#\d+-]+?}", "", ctx.weather)
|
||||||
data = re.split(r"(%{T[1-9-]})", data)
|
data = re.split(r"(%{T[1-9-]})", data)
|
||||||
font = ctx.font_family
|
font = ctx.font_family
|
||||||
|
@ -184,7 +184,7 @@ if __name__ == "__main__":
|
||||||
ctx.background = None
|
ctx.background = None
|
||||||
ctx.weather = None
|
ctx.weather = None
|
||||||
ctx.clock = None
|
ctx.clock = None
|
||||||
ctx.position = [0, 0]
|
ctx.position = (0, 0)
|
||||||
|
|
||||||
ctx.window = Gtk.Window()
|
ctx.window = Gtk.Window()
|
||||||
ctx.window.set_app_paintable(True)
|
ctx.window.set_app_paintable(True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue