mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 12:30:01 +02:00
xsecurelock: make Weather Icons font configurable
This commit is contained in:
parent
dd3e05604e
commit
725ccfcc36
1 changed files with 4 additions and 1 deletions
|
@ -120,7 +120,7 @@ def on_overlay_draw(widget, cctx, ctx):
|
|||
font = ctx.font_family
|
||||
continue
|
||||
elif chunk.startswith("%{T"):
|
||||
font = "Weather Icons"
|
||||
font = ctx.weather_font_family
|
||||
continue
|
||||
elif not chunk:
|
||||
continue
|
||||
|
@ -197,6 +197,9 @@ if __name__ == "__main__":
|
|||
ctx.weather_font_size = int(os.getenv("XSECURELOCK_SAVER_CLOCK_FONT_SIZE", 40))
|
||||
ctx.weather_file = os.getenv("XSECURELOCK_SAVER_WEATHER", None)
|
||||
ctx.font_family = os.getenv("XSECURELOCK_SAVER_FONT", "Iosevka Aile")
|
||||
ctx.weather_font_family = os.getenv(
|
||||
"XSECURELOCK_SAVER_WEATHER_FONT_FAMILY", "Weather Icons"
|
||||
)
|
||||
ctx.background = None
|
||||
ctx.weather = None
|
||||
ctx.clock = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue