Window switch, add custom field, with printf style config

based on work by Consolatis.
I added documentation, examples and repackaged.
This commit is contained in:
Droc 2024-03-24 08:40:47 -05:00
parent 11b6836a38
commit 6311b3ac6a
5 changed files with 202 additions and 45 deletions

View file

@ -25,6 +25,9 @@ enum window_switcher_field_content {
LAB_FIELD_WIN_STATE,
LAB_FIELD_TYPE_SHORT,
LAB_FIELD_OUTPUT,
LAB_FIELD_CUSTOM,
LAB_FIELD_COUNT
};
enum view_placement_policy {
@ -56,6 +59,7 @@ struct usable_area_override {
struct window_switcher_field {
enum window_switcher_field_content content;
int width;
char *format;
struct wl_list link; /* struct rcxml.window_switcher.fields */
};