diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-03-05 10:31:37 +0000 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-03-05 10:31:37 +0000 |
| commit | 2e38296edd5fbafbb93a42333af22ba9edd667bf (patch) | |
| tree | 3897fb218f91f0ac8d48d5d60fb23e6d196fa5d9 | |
| parent | fixed urgency hint, though Xinerama integration is still ongoing (diff) | |
| download | dwm-2e38296edd5fbafbb93a42333af22ba9edd667bf.tar.gz dwm-2e38296edd5fbafbb93a42333af22ba9edd667bf.zip | |
renamed maximise to monocle again.
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 6 | ||||
| -rw-r--r-- | dwm.1 | 13 | ||||
| -rw-r--r-- | dwm.c | 6 |
3 files changed, 7 insertions, 18 deletions
diff --git a/config.def.h b/config.def.h index 2c4d3d0..8537d6f 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -31,7 +31,7 @@ Layout layouts[] = { | |||
| 31 | /* symbol function */ | 31 | /* symbol function */ |
| 32 | { "[]=", tile }, /* first entry is default */ | 32 | { "[]=", tile }, /* first entry is default */ |
| 33 | { "><>", floating }, | 33 | { "><>", floating }, |
| 34 | { "[M]", maximise }, | 34 | { "[M]", monocle }, |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | /* key definitions */ | 37 | /* key definitions */ |
| @@ -42,9 +42,6 @@ Key keys[] = { | |||
| 42 | "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, | 42 | "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, |
| 43 | { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" }, | 43 | { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" }, |
| 44 | { MODKEY, XK_b, togglebar, NULL }, | 44 | { MODKEY, XK_b, togglebar, NULL }, |
| 45 | { MODKEY, XK_t, setlayout, "[]=" }, | ||
| 46 | { MODKEY, XK_f, setlayout, "><>" }, | ||
| 47 | { MODKEY, XK_m , setlayout, "[M]" }, | ||
| 48 | { MODKEY, XK_j, focusnext, NULL }, | 45 | { MODKEY, XK_j, focusnext, NULL }, |
| 49 | { MODKEY, XK_k, focusprev, NULL }, | 46 | { MODKEY, XK_k, focusprev, NULL }, |
| 50 | { MODKEY, XK_h, setmwfact, "-0.05" }, | 47 | { MODKEY, XK_h, setmwfact, "-0.05" }, |
| @@ -52,6 +49,7 @@ Key keys[] = { | |||
| 52 | { MODKEY, XK_r, reapply, NULL }, | 49 | { MODKEY, XK_r, reapply, NULL }, |
| 53 | { MODKEY, XK_Return, zoom, NULL }, | 50 | { MODKEY, XK_Return, zoom, NULL }, |
| 54 | { MODKEY, XK_Tab, viewprevtag, NULL }, | 51 | { MODKEY, XK_Tab, viewprevtag, NULL }, |
| 52 | { MODKEY, XK_space, setlayout, NULL }, | ||
| 55 | { MODKEY|ShiftMask, XK_space, togglefloating, NULL }, | 53 | { MODKEY|ShiftMask, XK_space, togglefloating, NULL }, |
| 56 | { MODKEY|ShiftMask, XK_c, killclient, NULL }, | 54 | { MODKEY|ShiftMask, XK_c, killclient, NULL }, |
| 57 | { MODKEY, XK_0, view, NULL }, | 55 | { MODKEY, XK_0, view, NULL }, |
| @@ -5,13 +5,13 @@ dwm \- dynamic window manager | |||
| 5 | .B dwm | 5 | .B dwm |
| 6 | .RB [ \-v ] | 6 | .RB [ \-v ] |
| 7 | .SH DESCRIPTION | 7 | .SH DESCRIPTION |
| 8 | dwm is a dynamic window manager for X. It manages windows in tiled, maximised | 8 | dwm is a dynamic window manager for X. It manages windows in tiled, monocle |
| 9 | and floating layouts. Either layout can be applied dynamically, optimising the | 9 | and floating layouts. Either layout can be applied dynamically, optimising the |
| 10 | environment for the application in use and the task performed. | 10 | environment for the application in use and the task performed. |
| 11 | .P | 11 | .P |
| 12 | In tiled layout windows are managed in a master and stacking area. The master | 12 | In tiled layout windows are managed in a master and stacking area. The master |
| 13 | area contains the window which currently needs most attention, whereas the | 13 | area contains the window which currently needs most attention, whereas the |
| 14 | stacking area contains all other windows. In maximised layout all windows are | 14 | stacking area contains all other windows. In monocle layout all windows are |
| 15 | maximised to the screen size. In floating layout windows can be resized and | 15 | maximised to the screen size. In floating layout windows can be resized and |
| 16 | moved freely. Dialog windows are always managed floating, regardless of the | 16 | moved freely. Dialog windows are always managed floating, regardless of the |
| 17 | layout applied. | 17 | layout applied. |
| @@ -63,15 +63,6 @@ Zooms/cycles current window to/from master area (tiled layout only). | |||
| 63 | .B Mod1\-Tab | 63 | .B Mod1\-Tab |
| 64 | Toggles to the previously selected tags. | 64 | Toggles to the previously selected tags. |
| 65 | .TP | 65 | .TP |
| 66 | .B Mod1\-t | ||
| 67 | Applies tiled layout. | ||
| 68 | .TP | ||
| 69 | .B Mod1\-f | ||
| 70 | Applies loating layout. | ||
| 71 | .TP | ||
| 72 | .B Mod1\-m | ||
| 73 | Applies maximised layout. | ||
| 74 | .TP | ||
| 75 | .B Mod1\-space | 66 | .B Mod1\-space |
| 76 | Toggles between layouts. | 67 | Toggles between layouts. |
| 77 | .TP | 68 | .TP |
| @@ -44,7 +44,7 @@ | |||
| 44 | * TODO: Idea: | 44 | * TODO: Idea: |
| 45 | * I intend to not provide real Xinerama support, but instead having a Column | 45 | * I intend to not provide real Xinerama support, but instead having a Column |
| 46 | * tilecols[] array which is used by tile(), and a Column maxcols[] arrays which is used by | 46 | * tilecols[] array which is used by tile(), and a Column maxcols[] arrays which is used by |
| 47 | * maximise(). Those arrays should be initialized in config.h. For simplicity | 47 | * monocle(). Those arrays should be initialized in config.h. For simplicity |
| 48 | * reasons mwfact should be replaced with a more advanced method which | 48 | * reasons mwfact should be replaced with a more advanced method which |
| 49 | * implements the same, but using the boundary between tilecols[0] and | 49 | * implements the same, but using the boundary between tilecols[0] and |
| 50 | * tilecols[1] instead. Besides this, get rid of BARPOS and use instead the | 50 | * tilecols[1] instead. Besides this, get rid of BARPOS and use instead the |
| @@ -172,7 +172,7 @@ void killclient(const char *arg); | |||
| 172 | void manage(Window w, XWindowAttributes *wa); | 172 | void manage(Window w, XWindowAttributes *wa); |
| 173 | void mappingnotify(XEvent *e); | 173 | void mappingnotify(XEvent *e); |
| 174 | void maprequest(XEvent *e); | 174 | void maprequest(XEvent *e); |
| 175 | void maximise(void); | 175 | void monocle(void); |
| 176 | void movemouse(Client *c); | 176 | void movemouse(Client *c); |
| 177 | Client *nexttiled(Client *c); | 177 | Client *nexttiled(Client *c); |
| 178 | void propertynotify(XEvent *e); | 178 | void propertynotify(XEvent *e); |
| @@ -1086,7 +1086,7 @@ maprequest(XEvent *e) { | |||
| 1086 | } | 1086 | } |
| 1087 | 1087 | ||
| 1088 | void | 1088 | void |
| 1089 | maximise(void) { | 1089 | monocle(void) { |
| 1090 | Client *c; | 1090 | Client *c; |
| 1091 | 1091 | ||
| 1092 | domwfact = dozoom = False; | 1092 | domwfact = dozoom = False; |
