diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-13 12:06:35 -0500 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-13 12:06:35 -0500 |
commit | 50d36ef238182c33bca8dfc01dd56957e31ff6bd (patch) | |
tree | 9eaac98af416b7a0a46e70a254561bdb968dfe25 /include/swaybar/bar.h | |
parent | Merge pull request #3411 from RedSoxFan/fix-brace-detect-seeking (diff) | |
download | sway-50d36ef238182c33bca8dfc01dd56957e31ff6bd.tar.gz sway-50d36ef238182c33bca8dfc01dd56957e31ff6bd.tar.zst sway-50d36ef238182c33bca8dfc01dd56957e31ff6bd.zip |
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.
Diffstat (limited to 'include/swaybar/bar.h')
-rw-r--r-- | include/swaybar/bar.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
61 | struct wl_list hotspots; // swaybar_hotspot::link | 61 | struct wl_list hotspots; // swaybar_hotspot::link |
62 | 62 | ||
63 | char *name; | 63 | char *name; |
64 | char *identifier; | ||
64 | bool focused; | 65 | bool focused; |
65 | 66 | ||
66 | uint32_t width, height; | 67 | uint32_t width, height; |