EWMH compatible state listener #705
Philipp-M
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Nice, I can throw out my hacky bash script now. IMHO, this kind of stuff should be integrated into eww. We already have stuff like network, ram, etc. built-in anyways. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, since it took a little bit more effort than initially anticipated (probably because I had to do it in Rust directly with an XCB connection instead of Rust/xprop or Bash/xprop, lol, but it's fast now at least (<1ms for a change)) and it may be helpful for others as well:
I wrote a simple EWMH status listener, which monitors the current state of an EWMH compatible window manager and outputs it as one-line json each time the EWMH state changes (e.g. the current workspace is changed or windows get opened/closed/focused etc.).
With this the need for a separate status bar is gone IMHO (which was also the motivation for this):
https://github.com/Philipp-M/ewmh-status-listener
Beta Was this translation helpful? Give feedback.
All reactions