mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-27 20:18:49 +02:00
i3-companion: log output events
This will be useful when trying to debug output changes. I need to know what I need to restart. Awesome was restarted while i3 does not. On top of my head, I need to reload xsettingsd.service and start wallpaper.service.
This commit is contained in:
parent
1caacfd679
commit
d4b25aa2da
1 changed files with 4 additions and 0 deletions
|
@ -196,6 +196,10 @@ if __name__ == "__main__":
|
|||
# Create/display a quake console
|
||||
i3.on(Event.TICK, quake_console)
|
||||
|
||||
# Log output event
|
||||
i3.on(Event.OUTPUT,
|
||||
lambda _, event: logger.info(f"Output event: {event.ipc_data}"))
|
||||
|
||||
i3.main()
|
||||
except Exception as e:
|
||||
logger.exception("%s", e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue