mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-30 13:24:21 +02:00
bin: run black
This commit is contained in:
parent
45ee293d35
commit
bce64c1118
3 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue