s2dblocks

[archived] statusbar blocks for dwm
git clone https://hhvn.uk/s2dblocks
git clone git://hhvn.uk/s2dblocks
Log | Files | Refs

status2d.h (676B)


      1 #define bar_height 15
      2 
      3 #define RED	"#AA2222"
      4 #define ORANGE	"#AA7700"
      5 #define GREEN	"#00AA00"
      6 #define BRBG	"#1A413A"
      7 #define BLACK	"#000000"
      8 #define GREY	"#888888"
      9 #define YELLOW	"#AAAA00"
     10 #define WHITE	"#CCCCCC"
     11 
     12 void s2d_reset(int fg, int bg);
     13 void s2d_finish(void);
     14 void s2d_rect(unsigned x, unsigned y, unsigned w, unsigned h);
     15 void s2d_border(unsigned x, unsigned y, unsigned w, unsigned h, unsigned px);
     16 void s2d_bar(unsigned x, unsigned y, unsigned w, unsigned h, unsigned px, unsigned percent);
     17 void s2d_divider(void);
     18 void s2d_fg(char *fg);
     19 void s2d_bg(char *bg);
     20 void s2d_forward(int px); /* negative to advance past drawn objects */
     21 void s2d_print(char *fmt, ...);