summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-03-05 10:31:37 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-03-05 10:31:37 +0000
commit2e38296edd5fbafbb93a42333af22ba9edd667bf (patch)
tree3897fb218f91f0ac8d48d5d60fb23e6d196fa5d9
parentfixed urgency hint, though Xinerama integration is still ongoing (diff)
downloaddwm-2e38296edd5fbafbb93a42333af22ba9edd667bf.tar.gz
dwm-2e38296edd5fbafbb93a42333af22ba9edd667bf.zip
renamed maximise to monocle again.
-rw-r--r--config.def.h6
-rw-r--r--dwm.113
-rw-r--r--dwm.c6
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 },
diff --git a/dwm.1 b/dwm.1
index 4737ba2..586d080 100644
--- a/dwm.1
+++ b/dwm.1
@@ -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
8dwm is a dynamic window manager for X. It manages windows in tiled, maximised 8dwm is a dynamic window manager for X. It manages windows in tiled, monocle
9and floating layouts. Either layout can be applied dynamically, optimising the 9and floating layouts. Either layout can be applied dynamically, optimising the
10environment for the application in use and the task performed. 10environment for the application in use and the task performed.
11.P 11.P
12In tiled layout windows are managed in a master and stacking area. The master 12In tiled layout windows are managed in a master and stacking area. The master
13area contains the window which currently needs most attention, whereas the 13area contains the window which currently needs most attention, whereas the
14stacking area contains all other windows. In maximised layout all windows are 14stacking area contains all other windows. In monocle layout all windows are
15maximised to the screen size. In floating layout windows can be resized and 15maximised to the screen size. In floating layout windows can be resized and
16moved freely. Dialog windows are always managed floating, regardless of the 16moved freely. Dialog windows are always managed floating, regardless of the
17layout applied. 17layout applied.
@@ -63,15 +63,6 @@ Zooms/cycles current window to/from master area (tiled layout only).
63.B Mod1\-Tab 63.B Mod1\-Tab
64Toggles to the previously selected tags. 64Toggles to the previously selected tags.
65.TP 65.TP
66.B Mod1\-t
67Applies tiled layout.
68.TP
69.B Mod1\-f
70Applies loating layout.
71.TP
72.B Mod1\-m
73Applies maximised layout.
74.TP
75.B Mod1\-space 66.B Mod1\-space
76Toggles between layouts. 67Toggles between layouts.
77.TP 68.TP
diff --git a/dwm.c b/dwm.c
index 68a9d1d..9bad83c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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);
172void manage(Window w, XWindowAttributes *wa); 172void manage(Window w, XWindowAttributes *wa);
173void mappingnotify(XEvent *e); 173void mappingnotify(XEvent *e);
174void maprequest(XEvent *e); 174void maprequest(XEvent *e);
175void maximise(void); 175void monocle(void);
176void movemouse(Client *c); 176void movemouse(Client *c);
177Client *nexttiled(Client *c); 177Client *nexttiled(Client *c);
178void propertynotify(XEvent *e); 178void propertynotify(XEvent *e);
@@ -1086,7 +1086,7 @@ maprequest(XEvent *e) {
1086} 1086}
1087 1087
1088void 1088void
1089maximise(void) { 1089monocle(void) {
1090 Client *c; 1090 Client *c;
1091 1091
1092 domwfact = dozoom = False; 1092 domwfact = dozoom = False;