summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Donahue <david.donahue2996@gmail.com>2021-03-01 13:19:25 -0600
committerDavid Donahue <david.donahue2996@gmail.com>2021-03-01 13:19:25 -0600
commit593b7eec3c58f3a332669cdea49a103017cfadf1 (patch)
treea66c0ebdba71c3cee62eff7dbc74199fa0f1ce87
parenta1e24075d81924926e5be4844e4e6faa8e0d744e (diff)
updated output format for better expansibility and easier parsing
-rw-r--r--dwl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 534c7ac..a5d2dba 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2180,12 +2180,13 @@ statusbar(void)
activetags |= c->tags;
}
if (focustop(m))
- fprintf(taginfo, "%s\n", client_get_title(focustop(m)));
+ fprintf(taginfo, "%s title %s\n", m->wlr_output->name, client_get_title(focustop(m)));
else
- fprintf(taginfo, "\n");
+ fprintf(taginfo, "%s title \n", m->wlr_output->name);
- fprintf(taginfo, "%u %u %u %s\n", m == selmon,
- activetags, m->tagset[m->seltags], selmon->lt[selmon->sellt]->symbol);
+ fprintf(taginfo, "%s selmon %u\n", m->wlr_output->name, m == selmon);
+ fprintf(taginfo, "%s tags %u %u\n", m->wlr_output->name, activetags, m->tagset[m->seltags]);
+ fprintf(taginfo, "%s layout %s\n", m->wlr_output->name, m->lt[m->sellt]->symbol);
}
fclose (taginfo);
}