From 9c8012db81f665b289a6c3b869d27ecd8fb7b09d Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 15 Aug 2022 11:04:29 +0200 Subject: [PATCH] i3-companion: add a proper comment to latest event function --- bin/i3-companion | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/i3-companion b/bin/i3-companion index 97424ff..eda055c 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -1001,7 +1001,8 @@ async def network_manager_status(i3, event, *args): signature="b", ), ) -async def on_sleep_resume(i3, event, path, sleeping): +async def on_resume(i3, event, path, sleeping): + """Switch monitor on when resuming from sleep.""" if not sleeping: logger.info("resume from sleep") dpms = i3.x11(xcffib.dpms.key)