summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-15 12:09:18 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-15 12:09:18 +0200
commit2aef8b9b4ce0900d241c60cb3a07e111c825d13a (patch)
tree74724a123e98195e1556c77a13f38bb7fea64cb7 /dwm.h
parentthanks to Jukka (diff)
downloaddwm-2aef8b9b4ce0900d241c60cb3a07e111c825d13a.tar.gz
dwm-2aef8b9b4ce0900d241c60cb3a07e111c825d13a.zip
made bar togglalble
Diffstat (limited to 'dwm.h')
-rw-r--r--dwm.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/dwm.h b/dwm.h
index ed5a304..42bd534 100644
--- a/dwm.h
+++ b/dwm.h
@@ -37,10 +37,11 @@
37/* mask shorthands, used in event.c and client.c */ 37/* mask shorthands, used in event.c and client.c */
38#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) 38#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
39 39
40enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ 40enum { BarTop, BarBot, BarOff }; /* bar position */
41enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
42enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ 41enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
43enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ 42enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
43enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */
44enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
44 45
45typedef struct Client Client; 46typedef struct Client Client;
46struct Client { 47struct Client {
@@ -83,7 +84,7 @@ extern const char *tags[]; /* all tags */
83char stext[256]; /* status text */ 84char stext[256]; /* status text */
84int screen, sx, sy, sw, sh; /* screen geometry */ 85int screen, sx, sy, sw, sh; /* screen geometry */
85int wax, way, wah, waw; /* windowarea geometry */ 86int wax, way, wah, waw; /* windowarea geometry */
86unsigned int bh, blw; /* bar height, bar layout label width */ 87unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */
87unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ 88unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */
88void (*handler[LASTEvent])(XEvent *); /* event handler */ 89void (*handler[LASTEvent])(XEvent *); /* event handler */
89Atom wmatom[WMLast], netatom[NetLast]; 90Atom wmatom[WMLast], netatom[NetLast];
@@ -100,13 +101,13 @@ void attach(Client *c); /* attaches c to global client list */
100void configure(Client *c); /* send synthetic configure event */ 101void configure(Client *c); /* send synthetic configure event */
101void detach(Client *c); /* detaches c from global client list */ 102void detach(Client *c); /* detaches c from global client list */
102void focus(Client *c); /* focus c, c may be NULL */ 103void focus(Client *c); /* focus c, c may be NULL */
103void focustopvisible(void); /* focus top visible window on stack */ 104void focustopvisible(void); /* focus top visible window on stack */
104void killclient(const char *arg); /* kill sel nicely */ 105void killclient(const char *arg); /* kill sel nicely */
105void manage(Window w, XWindowAttributes *wa); /* manage new client */ 106void manage(Window w, XWindowAttributes *wa); /* manage new client */
106void resize(Client *c, int x, int y, 107void resize(Client *c, int x, int y,
107 int w, int h, Bool sizehints); /* resize with given coordinates c*/ 108 int w, int h, Bool sizehints); /* resize with given coordinates c*/
108void togglefloating(const char *arg); /* toggles sel between floating/tiled state */ 109void togglefloating(const char *arg); /* toggles sel between floating/tiled state */
109void updatesizehints(Client *c); /* update the size hint variables of c */ 110void updatesizehints(Client *c); /* update the size hint variables of c */
110void updatetitle(Client *c); /* update the name of c */ 111void updatetitle(Client *c); /* update the name of c */
111void unmanage(Client *c); /* destroy c */ 112void unmanage(Client *c); /* destroy c */
112 113
@@ -126,11 +127,13 @@ void incnmaster(const char *arg); /* increments nmaster with arg's index value *
126void initlayouts(void); /* initialize layout array */ 127void initlayouts(void); /* initialize layout array */
127Client *nexttiled(Client *c); /* returns tiled successor of c */ 128Client *nexttiled(Client *c); /* returns tiled successor of c */
128void restack(void); /* restores z layers of all clients */ 129void restack(void); /* restores z layers of all clients */
129void setlayout(const char *arg); /* sets layout, -1 toggles */ 130void setlayout(const char *arg); /* sets layout, -1 toggles */
130void togglemax(const char *arg); /* toggles maximization of floating client */ 131void togglebar(const char *arg); /* shows/hides the bar */
132void togglemax(const char *arg); /* toggles maximization of floating client */
131void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */ 133void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */
132 134
133/* main.c */ 135/* main.c */
136void updatebarpos(void); /* updates the bar position */
134void quit(const char *arg); /* quit dwm nicely */ 137void quit(const char *arg); /* quit dwm nicely */
135int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 138int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
136 139
@@ -139,7 +142,7 @@ void compileregs(void); /* initialize regexps of rules defined in config.h */
139Bool isvisible(Client *c); /* returns True if client is visible */ 142Bool isvisible(Client *c); /* returns True if client is visible */
140void settags(Client *c, Client *trans); /* sets tags of c */ 143void settags(Client *c, Client *trans); /* sets tags of c */
141void tag(const char *arg); /* tags sel with arg's index */ 144void tag(const char *arg); /* tags sel with arg's index */
142void toggletag(const char *arg); /* toggles sel tags with arg's index */ 145void toggletag(const char *arg); /* toggles sel tags with arg's index */
143void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ 146void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */
144void view(const char *arg); /* views the tag with arg's index */ 147void view(const char *arg); /* views the tag with arg's index */
145 148