bin: run black

This commit is contained in:
Vincent Bernat 2021-12-26 15:31:38 +01:00
parent 45ee293d35
commit bce64c1118
3 changed files with 3 additions and 5 deletions

View file

@ -880,9 +880,7 @@ async def network_manager_notifications(i3, event, path, state, reason):
interface="org.freedesktop.DBus.Properties",
member="PropertiesChanged",
signature="sa{sv}as",
onlyif=lambda args: (
args[0] == "org.freedesktop.NetworkManager.AccessPoint"
),
onlyif=lambda args: (args[0] == "org.freedesktop.NetworkManager.AccessPoint"),
),
)
@retry(2)

View file

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

View file

@ -74,7 +74,7 @@ def on_overlay_draw(widget, cctx, ctx):
def draw(what):
x, y = cctx.get_current_point()
cctx.set_source_rgba(0, 0, 0, 0.3)
cctx.move_to(x+2, y+2)
cctx.move_to(x + 2, y + 2)
cctx.show_text(what)
cctx.set_source_rgb(1, 1, 1)
cctx.move_to(x, y)