From 50d36ef238182c33bca8dfc01dd56957e31ff6bd Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Sun, 13 Jan 2019 12:06:35 -0500 Subject: 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. --- include/swaybar/bar.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index e377b8de..2d9ba0d9 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -61,6 +61,7 @@ struct swaybar_output { struct wl_list hotspots; // swaybar_hotspot::link char *name; + char *identifier; bool focused; uint32_t width, height; -- cgit v1.2.3-54-g00ecf