mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-01 05:44:20 +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",
|
interface="org.freedesktop.DBus.Properties",
|
||||||
member="PropertiesChanged",
|
member="PropertiesChanged",
|
||||||
signature="sa{sv}as",
|
signature="sa{sv}as",
|
||||||
onlyif=lambda args: (
|
onlyif=lambda args: (args[0] == "org.freedesktop.NetworkManager.AccessPoint"),
|
||||||
args[0] == "org.freedesktop.NetworkManager.AccessPoint"
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@retry(2)
|
@retry(2)
|
||||||
|
|
|
@ -177,7 +177,7 @@ if __name__ == "__main__":
|
||||||
round(weather["daily"][0]["temp"]["max"]),
|
round(weather["daily"][0]["temp"]["max"]),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue