Closed hotburger closed 1 year ago
Hi, thanks for the idea. Interesting, I will study this after the new incoming release. 🍰
@hotburger you can already try the main branch if you want, the feature is merge.
I would be glade to know if it is what you expected. 😉
I will do a release when the hyprland-rs release will be done.
Thanks for your work, I really appreciate it. The substitution works, but looking at the debug logs the title is only being updated when the window is focused. Is this a limitation of the IPC?
Ho, yes, we update on some events, the one you trigger is "add_active_window_change_handler", but there is no "title change", or "add_inactive_window_change_handler" event for the moment afaik. I will study this.
I can reproduce your test, I can't find an event in hyprland codebase for this for the moment, this will need to be first implement here.
I will be able to patch after those PR get validated and merged:
https://github.com/hyprland-community/hyprland-rs/pull/56 https://github.com/hyprwm/Hyprland/pull/2419
Titles can be very long. I would like to be able to use regex capture groups and substitution to shorten them.
For example: foot with a title of:
emerge: (13 of 20) dev-lang/rust-1.69.0-r1 Compile:
and with config:should display
(13 of 20) dev-lang/rust