Add appid field to printstatus() output
Adds an appid field to printstatus which can be used to monitor the currently active application.
This commit is contained in:
parent
ab8334bd8a
commit
7f9a212476
1 changed files with 6 additions and 1 deletions
7
dwl.c
7
dwl.c
|
@ -1823,6 +1823,7 @@ printstatus(void)
|
||||||
Monitor *m = NULL;
|
Monitor *m = NULL;
|
||||||
Client *c;
|
Client *c;
|
||||||
unsigned int occ, urg, sel;
|
unsigned int occ, urg, sel;
|
||||||
|
const char *appid, *title;
|
||||||
|
|
||||||
wl_list_for_each(m, &mons, link) {
|
wl_list_for_each(m, &mons, link) {
|
||||||
occ = urg = 0;
|
occ = urg = 0;
|
||||||
|
@ -1834,12 +1835,16 @@ printstatus(void)
|
||||||
urg |= c->tags;
|
urg |= c->tags;
|
||||||
}
|
}
|
||||||
if ((c = focustop(m))) {
|
if ((c = focustop(m))) {
|
||||||
printf("%s title %s\n", m->wlr_output->name, client_get_title(c));
|
title = client_get_title(c);
|
||||||
|
appid = client_get_appid(c);
|
||||||
|
printf("%s title %s\n", m->wlr_output->name, title ? title : broken);
|
||||||
|
printf("%s appid %s\n", m->wlr_output->name, appid ? appid : broken);
|
||||||
printf("%s fullscreen %u\n", m->wlr_output->name, c->isfullscreen);
|
printf("%s fullscreen %u\n", m->wlr_output->name, c->isfullscreen);
|
||||||
printf("%s floating %u\n", m->wlr_output->name, c->isfloating);
|
printf("%s floating %u\n", m->wlr_output->name, c->isfloating);
|
||||||
sel = c->tags;
|
sel = c->tags;
|
||||||
} else {
|
} else {
|
||||||
printf("%s title \n", m->wlr_output->name);
|
printf("%s title \n", m->wlr_output->name);
|
||||||
|
printf("%s appid \n", m->wlr_output->name);
|
||||||
printf("%s fullscreen \n", m->wlr_output->name);
|
printf("%s fullscreen \n", m->wlr_output->name);
|
||||||
printf("%s floating \n", m->wlr_output->name);
|
printf("%s floating \n", m->wlr_output->name);
|
||||||
sel = 0;
|
sel = 0;
|
||||||
|
|
Loading…
Reference in a new issue