~kris/suckless

dwm

ref: 9780b2f6361a848a23779f2340c94bc8f0344159 dwm/patch/bar_status.c -rw-r--r-- 564 bytes
9780b2f6 — Kris Yotam wip: emergency backup (power outage risk) 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
int
width_status(Bar *bar, BarArg *a)
{
	return TEXTWM(stext);
}

#if BAR_EXTRASTATUS_PATCH
int
width_status_es(Bar *bar, BarArg *a)
{
	return TEXTWM(estext) - lrpad;
}
#endif // BAR_EXTRASTATUS_PATCH

int
draw_status(Bar *bar, BarArg *a)
{
	return drw_text(drw, a->x, a->y, a->w, a->h, lrpad / 2, stext, 0, True);
}

#if BAR_EXTRASTATUS_PATCH
int
draw_status_es(Bar *bar, BarArg *a)
{
	return drw_text(drw, a->x, a->y, a->w, a->h, 0, estext, 0, True);
}
#endif // BAR_EXTRASTATUS_PATCH

int
click_status(Bar *bar, Arg *arg, BarArg *a)
{
	return ClkStatusText;
}