summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.h')
-rw-r--r--dwm.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/dwm.h b/dwm.h
index 676b474..c67004a 100644
--- a/dwm.h
+++ b/dwm.h
@@ -97,7 +97,7 @@ extern void drawstatus(); /* draw the bar */
97extern void drawtitle(Client *c); /* draw title of c */ 97extern void drawtitle(Client *c); /* draw title of c */
98extern unsigned long getcolor(const char *colstr); /* return color of colstr */ 98extern unsigned long getcolor(const char *colstr); /* return color of colstr */
99extern void setfont(const char *fontstr); /* set the font for DC */ 99extern void setfont(const char *fontstr); /* set the font for DC */
100extern unsigned int textw(const char *text); /* return the text width of text */ 100extern unsigned int textw(const char *text); /* return the width of text in px*/
101 101
102/* event.c */ 102/* event.c */
103extern void grabkeys(); /* grab all keys defined in config.h */ 103extern void grabkeys(); /* grab all keys defined in config.h */
@@ -114,26 +114,26 @@ extern void initrregs(); /* initialize regexps of rules defined in config.h */
114extern Client *getnext(Client *c); /* returns next visible client */ 114extern Client *getnext(Client *c); /* returns next visible client */
115extern Client *getprev(Client *c); /* returns previous visible client */ 115extern Client *getprev(Client *c); /* returns previous visible client */
116extern void settags(Client *c, Client *trans); /* sets tags of c */ 116extern void settags(Client *c, Client *trans); /* sets tags of c */
117extern void tag(Arg *arg); /* tags c accordingly to arg's index */ 117extern void tag(Arg *arg); /* tags c with arg's index */
118extern void toggletag(Arg *arg); /* toggles c tags accordingly to arg's index */ 118extern void toggletag(Arg *arg); /* toggles c tags with arg's index */
119 119
120/* util.c */ 120/* util.c */
121extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ 121extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */
122extern void eprint(const char *errstr, ...); /* prints error string and exits with return code 1 */ 122extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
123extern void *erealloc(void *ptr, unsigned int size); /* reallocates memory, exits on error */ 123extern void *erealloc(void *ptr, unsigned int size); /* reallocates memory, exits on error */
124extern void spawn(Arg *arg); /* forks a new subprocess accordingly to arg's cmd */ 124extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */
125 125
126/* view.c */ 126/* view.c */
127extern void detach(Client *c); /* detaches c from global client list */ 127extern void detach(Client *c); /* detaches c from global client list */
128extern void dofloat(Arg *arg); /* arranges all windows in a floating way, arg is ignored */ 128extern void dofloat(Arg *arg); /* arranges all windows floating, arg is ignored */
129extern void dotile(Arg *arg); /* arranges all windows in a tiled way, arg is ignored */ 129extern void dotile(Arg *arg); /* arranges all windows, arg is ignored */
130extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ 130extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */
131extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ 131extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */
132extern Bool isvisible(Client *c); /* returns True if client is visible */ 132extern Bool isvisible(Client *c); /* returns True if client is visible */
133extern void resizecol(Arg *arg); /* resizes the master width accordingly to arg's index value */ 133extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */
134extern void restack(); /* restores z layers of all clients */ 134extern void restack(); /* restores z layers of all clients */
135extern void togglemode(Arg *arg); /* toggles global arrange function (between dotile and dofloat) */ 135extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */
136extern void toggleview(Arg *arg); /* toggles the tag accordingly to arg's index (in)visible */ 136extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */
137extern void view(Arg *arg); /* views the tag accordingly to arg's index */ 137extern void view(Arg *arg); /* views the tag with arg's index */
138extern void viewall(Arg *arg); /* views all tags, arg is ignored */ 138extern void viewall(Arg *arg); /* views all tags, arg is ignored */
139extern void zoom(Arg *arg); /* zooms the focused client to master column, arg is ignored */ 139extern void zoom(Arg *arg); /* zooms the focused client to master column, arg is ignored */