Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
563 B

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