dwm

Kris's build of dwm
git clone git clone https://git.krisyotam.com/krisyotam/dwm.git
Log | Files | Refs | README | LICENSE

bar_status.c (564B)


      1 int
      2 width_status(Bar *bar, BarArg *a)
      3 {
      4 	return TEXTWM(stext);
      5 }
      6 
      7 #if BAR_EXTRASTATUS_PATCH
      8 int
      9 width_status_es(Bar *bar, BarArg *a)
     10 {
     11 	return TEXTWM(estext) - lrpad;
     12 }
     13 #endif // BAR_EXTRASTATUS_PATCH
     14 
     15 int
     16 draw_status(Bar *bar, BarArg *a)
     17 {
     18 	return drw_text(drw, a->x, a->y, a->w, a->h, lrpad / 2, stext, 0, True);
     19 }
     20 
     21 #if BAR_EXTRASTATUS_PATCH
     22 int
     23 draw_status_es(Bar *bar, BarArg *a)
     24 {
     25 	return drw_text(drw, a->x, a->y, a->w, a->h, 0, estext, 0, True);
     26 }
     27 #endif // BAR_EXTRASTATUS_PATCH
     28 
     29 int
     30 click_status(Bar *bar, Arg *arg, BarArg *a)
     31 {
     32 	return ClkStatusText;
     33 }
     34