implemented bar for dwm (I miss status text), I plan that status text is read from stdin in dwm
This commit is contained in:
11
dwm.h
11
dwm.h
@ -88,19 +88,22 @@ struct Key {
|
||||
};
|
||||
|
||||
extern Display *dpy;
|
||||
extern Window root;
|
||||
extern Window root, barwin;
|
||||
extern Atom wm_atom[WMLast], net_atom[NetLast];
|
||||
extern Cursor cursor[CurLast];
|
||||
extern Bool running, issel;
|
||||
extern void (*handler[LASTEvent])(XEvent *);
|
||||
extern void (*arrange)(Arg *);
|
||||
|
||||
extern int tsel, screen, sx, sy, sw, sh, mw, th;
|
||||
extern char *tags[TLast];
|
||||
extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
|
||||
extern char *tags[TLast], stext[1024];
|
||||
|
||||
extern DC dc;
|
||||
extern Client *clients, *sel;
|
||||
|
||||
/* bar.c */
|
||||
extern void draw_bar();
|
||||
|
||||
/* client.c */
|
||||
extern void manage(Window w, XWindowAttributes *wa);
|
||||
extern void unmanage(Client *c);
|
||||
@ -126,7 +129,7 @@ extern void zoom(Arg *arg);
|
||||
extern void gravitate(Client *c, Bool invert);
|
||||
|
||||
/* draw.c */
|
||||
extern void draw(Bool border, const char *text);
|
||||
extern void drawtext(const char *text, Bool border);
|
||||
extern unsigned long initcolor(const char *colstr);
|
||||
extern void initfont(const char *fontstr);
|
||||
extern unsigned int textnw(char *text, unsigned int len);
|
||||
|
Reference in New Issue
Block a user