mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: allow identifiers for output and tray
This allows `bar output` and `bar tray_output` to specify an output identifier. Output names should still work as well. This parses the output identifier from the xdg_output description, which wlroots currently sets to `make model serial (name)`. Since this could change in the future, all identifier comparisons are guarded by NULL-checks in case the description cannot be parsed to an identifier.
This commit is contained in:
parent
d256182f49
commit
50d36ef238
3 changed files with 31 additions and 8 deletions
|
|
@ -61,6 +61,7 @@ struct swaybar_output {
|
|||
struct wl_list hotspots; // swaybar_hotspot::link
|
||||
|
||||
char *name;
|
||||
char *identifier;
|
||||
bool focused;
|
||||
|
||||
uint32_t width, height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue