polybar-weather: use location pin instead of windsock

This commit is contained in:
Vincent Bernat 2021-12-19 20:36:10 +01:00
parent a43c1d8b99
commit ffe86057f4

View file

@ -178,7 +178,7 @@ if __name__ == "__main__":
), ),
] ]
city = city.replace('%', '%%') city = city.replace('%', '%%')
conditions.insert(0, f"%{{F#888}}%{{Tx}}%{{T-}} {city}%{{F-}}") conditions.insert(0, f"%{{F#888}}%{{Tx}}%{{T-}} {city}%{{F-}}")
output = " ".join(conditions).replace("%{Tx}", "%%{T%d}" % options.font_index) output = " ".join(conditions).replace("%{Tx}", "%%{T%d}" % options.font_index)
logger.debug("output: %s", output) logger.debug("output: %s", output)