JakeStanger / ironbar

Customisable Wayland gtk bar written in Rust.
https://crates.io/crates/ironbar
MIT License
487 stars 36 forks source link

[Launcher] More indicators for where applications are #249

Open donovanglover opened 11 months ago

donovanglover commented 11 months ago

Is your feature request related to a problem? Please describe. Would be cool if there was a way to differentiate applications on the same workspace from applications on different workspaces.

Describe the solution you'd like

Describe alternatives you've considered Per-window indicators instead of per-application, although this adds complexity.

JakeStanger commented 11 months ago

I can see the use-case but my initial thoughts are that this is going to be too complex.

The issue I see here is that the launcher module does not currently have any idea of workspaces. Under the hood it uses wlr_foreign_toplevel, and wayland/wlroots currently lacks workspace support.

This would therefore require tracking all workspaces and windows via the compositor's IPC, and then cross-referencing that with Wayland. Apart from the added complexity, this would box the module in to only work on Sway/Hyprland. I suspect the changes would be complex enough that it would be hard to stick them behind a flag too, so you couldn't switch it off and use on other compositors.