My dmenu build
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

18 лет назад
18 лет назад
18 лет назад
17 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
18 лет назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
  2. * See LICENSE file for license details.
  3. */
  4. #include <X11/Xlib.h>
  5. #define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
  6. #define NORMBGCOLOR "#eeeeee"
  7. #define NORMFGCOLOR "#222222"
  8. #define SELBGCOLOR "#006699"
  9. #define SELFGCOLOR "#ffffff"
  10. #define SPACE 30 /* px */
  11. /* color */
  12. enum { ColFG, ColBG, ColLast };
  13. typedef struct DC DC;
  14. typedef struct Fnt Fnt;
  15. struct Fnt {
  16. XFontStruct *xfont;
  17. XFontSet set;
  18. int ascent;
  19. int descent;
  20. int height;
  21. };
  22. struct DC {
  23. int x, y, w, h;
  24. unsigned long norm[ColLast];
  25. unsigned long sel[ColLast];
  26. Drawable drawable;
  27. Fnt font;
  28. GC gc;
  29. }; /* draw context */
  30. extern int screen;
  31. extern Display *dpy;
  32. extern DC dc; /* global drawing context */
  33. /* util.c */
  34. extern void *emalloc(unsigned int size); /* allocates memory, exits on error */
  35. extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
  36. extern char *estrdup(const char *str); /* duplicates str, exits on allocation error */