Compare commits
164 Commits
Author | SHA1 | Date | |
---|---|---|---|
0e21794e02 | |||
d477fb6927 | |||
3d6630b7d2 | |||
c982bb1389 | |||
6cf73e706a | |||
a520ba3c0b | |||
0c71b16b92 | |||
00c28a7ef2 | |||
5a3a2d6b63 | |||
a355782a77 | |||
20cd336087 | |||
a6a216f28c | |||
2c2063bc75 | |||
e6ede461a9 | |||
6877205e9d | |||
fb5f99d935 | |||
7ebab7533a | |||
9fa5ca3538 | |||
fe6b0c0fc1 | |||
aa2395b6a8 | |||
dba22848c7 | |||
33b1960220 | |||
e237b2a76f | |||
dd9ee6d248 | |||
1380569133 | |||
831428b00c | |||
69439715c0 | |||
f2e98f48fb | |||
c19d4b2930 | |||
f77a3d0a62 | |||
8aa1533879 | |||
2fc9cffdeb | |||
3c5b6f03ba | |||
02673538bc | |||
95eae7b9d2 | |||
59107755c8 | |||
d05d09b205 | |||
47b1974446 | |||
247ba66c08 | |||
d7b074fcce | |||
c9170189bf | |||
f7a45ff28b | |||
add7df6e9b | |||
3a79b82721 | |||
b31b430592 | |||
88c8ead3e8 | |||
2e95837220 | |||
5d9ae3f3b7 | |||
2e38296edd | |||
59aa02a075 | |||
e3c2d327f6 | |||
295ad21092 | |||
39af3c2607 | |||
96ee9d888c | |||
a82cba2759 | |||
f7c097e802 | |||
da1b3fa437 | |||
ad0a2fa042 | |||
9804726c82 | |||
7bc272a4e4 | |||
f1719ac2de | |||
d99ec61482 | |||
2f70a14ee1 | |||
00ca643bd7 | |||
0271ac0ed7 | |||
d5178292ed | |||
2bfd3fffbf | |||
a3d8c05a95 | |||
fd01413fae | |||
d6e24f7116 | |||
c43d7b7587 | |||
de5b294edc | |||
8e0f8ffcc6 | |||
dd21823536 | |||
9cb9c32ee7 | |||
4076e2ff60 | |||
55edd2d6ec | |||
2e8e5509d9 | |||
4426032450 | |||
e0f0397896 | |||
ca3e847e45 | |||
c2737b7b93 | |||
191cb9ce28 | |||
6ab163c695 | |||
e8244395e4 | |||
954db46bac | |||
508922b90d | |||
4adfdc9d95 | |||
c619363d15 | |||
012710a3ce | |||
c2c54cc0fa | |||
a62630ae92 | |||
62b18fb9d4 | |||
e0d6451086 | |||
7a496e9777 | |||
308f95ae5a | |||
40a734bca9 | |||
985e330524 | |||
5f19423c7b | |||
d66ad1457e | |||
8497f9f781 | |||
91bb749e97 | |||
68ff133857 | |||
4380db468a | |||
123a565bb9 | |||
d0e0505301 | |||
762b66ae7c | |||
cb4951dd54 | |||
667da18b31 | |||
e9a0733506 | |||
198502f41d | |||
35efafe8ac | |||
951d022dfc | |||
54bde0f9d7 | |||
260a55ef62 | |||
0e98090d65 | |||
af4667a85a | |||
a98b5e5935 | |||
b8985dc7bb | |||
6f60b2e1cd | |||
3033d45d1c | |||
34e7872c89 | |||
c36f7c3c5e | |||
3fd39feb41 | |||
93eee247ca | |||
d5e8edcbcb | |||
13577b15e5 | |||
5473e763f6 | |||
cdd6c3e820 | |||
29f2b15ddc | |||
7b65b763bc | |||
e94774dd69 | |||
af0034f3a5 | |||
cd7ebaad25 | |||
8dc03d6e6b | |||
1dcb18c124 | |||
206eb344e2 | |||
04de5720e6 | |||
5a04edecb1 | |||
24c125cc8a | |||
0453c1d180 | |||
0b5c14cf59 | |||
a73de0cff4 | |||
eeea4ef583 | |||
883e09b2eb | |||
7e25897f11 | |||
95091dcad4 | |||
57676994ea | |||
60adbab726 | |||
c3eca4d14f | |||
d1f4fbb469 | |||
635b64384d | |||
bedbe59aaa | |||
3f3086f8b8 | |||
f92a4e45c4 | |||
2fc8a13588 | |||
63725004f5 | |||
e9348dcaca | |||
fa857b2896 | |||
c77663fcb4 | |||
17d39ee014 | |||
8d1810c85b | |||
60444daa70 | |||
b0477c3017 |
4
.hgtags
4
.hgtags
@ -48,3 +48,7 @@ c13cb8c6b7a56af74cc88346e71d2490470b546f 4.2
|
|||||||
e0ec0d5d8b1ef3ee04a83c7c0fee5853aa2ac6a6 4.3
|
e0ec0d5d8b1ef3ee04a83c7c0fee5853aa2ac6a6 4.3
|
||||||
408014d2126153d2b0fce26a13ba707db222b7b9 4.4
|
408014d2126153d2b0fce26a13ba707db222b7b9 4.4
|
||||||
7c117df5d202530e85066d8b1ab02cef605c79ad 4.4.1
|
7c117df5d202530e85066d8b1ab02cef605c79ad 4.4.1
|
||||||
|
2acc60d6dfe28c101a8cd44a8aa710a38ae3607c 4.5
|
||||||
|
bcd7e18e196a00cc2e97ff3a4a58f3cdaba13856 4.6
|
||||||
|
d6d3085307d8d98b8b012b669e858fd787befeb1 4.7
|
||||||
|
607015ddb091d49cbd3457af41713691aa69f4d6 4.8
|
||||||
|
4
LICENSE
4
LICENSE
@ -1,10 +1,12 @@
|
|||||||
MIT/X Consortium License
|
MIT/X Consortium License
|
||||||
|
|
||||||
© 2006-2007 Anselm R. Garbe <garbeam at gmail dot com>
|
© 2006-2008 Anselm R Garbe <garbeam at gmail dot com>
|
||||||
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
|
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
|
||||||
© 2006-2007 Jukka Salmi <jukka at salmi dot ch>
|
© 2006-2007 Jukka Salmi <jukka at salmi dot ch>
|
||||||
© 2007 Premysl Hruby <dfenze at gmail dot com>
|
© 2007 Premysl Hruby <dfenze at gmail dot com>
|
||||||
© 2007 Szabolcs Nagy <nszabolcs at gmail dot com>
|
© 2007 Szabolcs Nagy <nszabolcs at gmail dot com>
|
||||||
|
© 2007 Christof Musik <christof at sendfax dot de>
|
||||||
|
© 2007-2008 Enno Gottox Boland <gottox at s01 dot de>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
8
Makefile
8
Makefile
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
include config.mk
|
include config.mk
|
||||||
|
|
||||||
SRC += dwm.c
|
SRC = dwm.c
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
|
|
||||||
all: options dwm
|
all: options dwm
|
||||||
@ -20,6 +20,10 @@ options:
|
|||||||
|
|
||||||
${OBJ}: config.h config.mk
|
${OBJ}: config.h config.mk
|
||||||
|
|
||||||
|
config.h:
|
||||||
|
@echo creating $@ from config.def.h
|
||||||
|
@cp config.def.h $@
|
||||||
|
|
||||||
dwm: ${OBJ}
|
dwm: ${OBJ}
|
||||||
@echo CC -o $@
|
@echo CC -o $@
|
||||||
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
||||||
@ -31,7 +35,7 @@ clean:
|
|||||||
dist: clean
|
dist: clean
|
||||||
@echo creating dist tarball
|
@echo creating dist tarball
|
||||||
@mkdir -p dwm-${VERSION}
|
@mkdir -p dwm-${VERSION}
|
||||||
@cp -R LICENSE Makefile README config.h config.mk \
|
@cp -R LICENSE Makefile README config.def.h config.mk \
|
||||||
dwm.1 ${SRC} dwm-${VERSION}
|
dwm.1 ${SRC} dwm-${VERSION}
|
||||||
@tar -cf dwm-${VERSION}.tar dwm-${VERSION}
|
@tar -cf dwm-${VERSION}.tar dwm-${VERSION}
|
||||||
@gzip dwm-${VERSION}.tar
|
@gzip dwm-${VERSION}.tar
|
||||||
|
3
README
3
README
@ -18,6 +18,9 @@ necessary as root):
|
|||||||
|
|
||||||
make clean install
|
make clean install
|
||||||
|
|
||||||
|
If you are going to use the default bluegray color scheme it is highly
|
||||||
|
recommended to also install the bluegray files shipped in the dextra package.
|
||||||
|
|
||||||
|
|
||||||
Running dwm
|
Running dwm
|
||||||
-----------
|
-----------
|
||||||
|
100
config.def.h
Normal file
100
config.def.h
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
|
/* appearance */
|
||||||
|
#define BORDERPX 1
|
||||||
|
#define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
|
||||||
|
#define NORMBORDERCOLOR "#cccccc"
|
||||||
|
#define NORMBGCOLOR "#cccccc"
|
||||||
|
#define NORMFGCOLOR "#000000"
|
||||||
|
#define SELBORDERCOLOR "#0066ff"
|
||||||
|
#define SELBGCOLOR "#0066ff"
|
||||||
|
#define SELFGCOLOR "#ffffff"
|
||||||
|
|
||||||
|
/* tagging */
|
||||||
|
const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
|
|
||||||
|
Rule rules[] = {
|
||||||
|
/* class instance title tags ref isfloating */
|
||||||
|
{ "Gimp", NULL, NULL, NULL, True },
|
||||||
|
};
|
||||||
|
|
||||||
|
/* geometries, s{x,y,w,h} and bh are already initualized here */
|
||||||
|
/* func name bx by bw wx wy ww wh mx my mw mh tx ty tw th mox moy mow moh */
|
||||||
|
#define MFACT 0.55 /* master width factor [0.1 .. 0.9] */
|
||||||
|
DEFGEOM(single, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, mfact*sw, wh, mx+mw, wy, ww-mw, wh, wx, wy, ww, wh)
|
||||||
|
|
||||||
|
Geom geoms[] = {
|
||||||
|
/* symbol function */
|
||||||
|
{ "[]", single }, /* first entry is default */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* layout(s) */
|
||||||
|
#define RESIZEHINTS True /* False - respect size hints in tiled resizals */
|
||||||
|
#define SNAP 32 /* snap pixel */
|
||||||
|
|
||||||
|
Layout layouts[] = {
|
||||||
|
/* symbol function isfloating */
|
||||||
|
{ "[]=", tilev, False }, /* first entry is default */
|
||||||
|
{ "[]|", tileh, False },
|
||||||
|
{ "><>", floating, True },
|
||||||
|
{ "[M]", monocle, True },
|
||||||
|
};
|
||||||
|
|
||||||
|
/* key definitions */
|
||||||
|
#define MODKEY Mod1Mask
|
||||||
|
Key keys[] = {
|
||||||
|
/* modifier key function argument */
|
||||||
|
{ MODKEY, XK_p, spawn,
|
||||||
|
"exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
|
||||||
|
{ MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" },
|
||||||
|
{ MODKEY, XK_j, focusnext, NULL },
|
||||||
|
{ MODKEY, XK_k, focusprev, NULL },
|
||||||
|
{ MODKEY, XK_r, reapply, NULL },
|
||||||
|
{ MODKEY, XK_h, setmfact, "-0.05" },
|
||||||
|
{ MODKEY, XK_l, setmfact, "+0.05" },
|
||||||
|
{ MODKEY, XK_Return, zoom, NULL },
|
||||||
|
{ MODKEY, XK_Tab, viewprevtag, NULL },
|
||||||
|
{ MODKEY|ShiftMask, XK_c, killclient, NULL },
|
||||||
|
{ MODKEY, XK_space, setlayout, NULL },
|
||||||
|
{ MODKEY|ShiftMask, XK_space, togglefloating, NULL },
|
||||||
|
{ MODKEY|ControlMask, XK_space, setgeom, NULL },
|
||||||
|
{ MODKEY, XK_0, view, NULL },
|
||||||
|
{ MODKEY, XK_1, view, tags[0] },
|
||||||
|
{ MODKEY, XK_2, view, tags[1] },
|
||||||
|
{ MODKEY, XK_3, view, tags[2] },
|
||||||
|
{ MODKEY, XK_4, view, tags[3] },
|
||||||
|
{ MODKEY, XK_5, view, tags[4] },
|
||||||
|
{ MODKEY, XK_6, view, tags[5] },
|
||||||
|
{ MODKEY, XK_7, view, tags[6] },
|
||||||
|
{ MODKEY, XK_8, view, tags[7] },
|
||||||
|
{ MODKEY, XK_9, view, tags[8] },
|
||||||
|
{ MODKEY|ControlMask, XK_1, toggleview, tags[0] },
|
||||||
|
{ MODKEY|ControlMask, XK_2, toggleview, tags[1] },
|
||||||
|
{ MODKEY|ControlMask, XK_3, toggleview, tags[2] },
|
||||||
|
{ MODKEY|ControlMask, XK_4, toggleview, tags[3] },
|
||||||
|
{ MODKEY|ControlMask, XK_5, toggleview, tags[4] },
|
||||||
|
{ MODKEY|ControlMask, XK_6, toggleview, tags[5] },
|
||||||
|
{ MODKEY|ControlMask, XK_7, toggleview, tags[6] },
|
||||||
|
{ MODKEY|ControlMask, XK_8, toggleview, tags[7] },
|
||||||
|
{ MODKEY|ControlMask, XK_9, toggleview, tags[8] },
|
||||||
|
{ MODKEY|ShiftMask, XK_0, tag, NULL },
|
||||||
|
{ MODKEY|ShiftMask, XK_1, tag, tags[0] },
|
||||||
|
{ MODKEY|ShiftMask, XK_2, tag, tags[1] },
|
||||||
|
{ MODKEY|ShiftMask, XK_3, tag, tags[2] },
|
||||||
|
{ MODKEY|ShiftMask, XK_4, tag, tags[3] },
|
||||||
|
{ MODKEY|ShiftMask, XK_5, tag, tags[4] },
|
||||||
|
{ MODKEY|ShiftMask, XK_6, tag, tags[5] },
|
||||||
|
{ MODKEY|ShiftMask, XK_7, tag, tags[6] },
|
||||||
|
{ MODKEY|ShiftMask, XK_8, tag, tags[7] },
|
||||||
|
{ MODKEY|ShiftMask, XK_9, tag, tags[8] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_1, toggletag, tags[0] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_2, toggletag, tags[1] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_3, toggletag, tags[2] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_4, toggletag, tags[3] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_5, toggletag, tags[4] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_6, toggletag, tags[5] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_7, toggletag, tags[6] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_8, toggletag, tags[7] },
|
||||||
|
{ MODKEY|ControlMask|ShiftMask, XK_9, toggletag, tags[8] },
|
||||||
|
{ MODKEY|ShiftMask, XK_q, quit, NULL },
|
||||||
|
};
|
93
config.h
93
config.h
@ -1,93 +0,0 @@
|
|||||||
/* See LICENSE file for copyright and license details. */
|
|
||||||
|
|
||||||
/* appearance */
|
|
||||||
#define BARPOS BarTop /* BarBot, BarOff */
|
|
||||||
#define BORDERPX 1
|
|
||||||
#define FONT "-*-terminus-medium-r-*-*-12-*-*-*-*-*-iso10646-*"
|
|
||||||
#define NORMBORDERCOLOR "#333"
|
|
||||||
#define NORMBGCOLOR "#000"
|
|
||||||
#define NORMFGCOLOR "#ccc"
|
|
||||||
#define SELBORDERCOLOR "#f00"
|
|
||||||
#define SELBGCOLOR "#00f"
|
|
||||||
#define SELFGCOLOR "#fff"
|
|
||||||
|
|
||||||
/* tagging */
|
|
||||||
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
|
|
||||||
Rule rules[] = {
|
|
||||||
/* class:instance:title regex tags regex isfloating */
|
|
||||||
{ "Firefox", "3", False },
|
|
||||||
{ "Gimp", NULL, True },
|
|
||||||
{ "MPlayer", NULL, True },
|
|
||||||
{ "Acroread", NULL, True },
|
|
||||||
};
|
|
||||||
|
|
||||||
/* layout(s) */
|
|
||||||
Layout layouts[] = {
|
|
||||||
/* symbol function */
|
|
||||||
{ "[]=", tile }, /* first entry is default */
|
|
||||||
{ "><>", floating },
|
|
||||||
};
|
|
||||||
#define RESIZEHINTS True /* False - respect size hints in tiled resizals */
|
|
||||||
#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */
|
|
||||||
#define SNAP 32 /* snap pixel */
|
|
||||||
|
|
||||||
/* key definitions */
|
|
||||||
#define MODKEY Mod1Mask
|
|
||||||
#define KEYS \
|
|
||||||
Key keys[] = { \
|
|
||||||
/* modifier key function argument */ \
|
|
||||||
{ MODKEY, XK_p, spawn, \
|
|
||||||
"exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'" \
|
|
||||||
" -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, \
|
|
||||||
"exec xterm -bg '"NORMBGCOLOR"' -fg '"NORMFGCOLOR"' -cr '"NORMFGCOLOR"' +sb -fn '"FONT"'" }, \
|
|
||||||
{ MODKEY, XK_space, setlayout, NULL }, \
|
|
||||||
{ MODKEY, XK_b, togglebar, NULL }, \
|
|
||||||
{ MODKEY, XK_j, focusnext, NULL }, \
|
|
||||||
{ MODKEY, XK_k, focusprev, NULL }, \
|
|
||||||
{ MODKEY, XK_h, setmwfact, "-0.05" }, \
|
|
||||||
{ MODKEY, XK_l, setmwfact, "+0.05" }, \
|
|
||||||
{ MODKEY, XK_m, togglemax, NULL }, \
|
|
||||||
{ MODKEY, XK_Return, zoom, NULL }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_space, togglefloating, NULL }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_c, killclient, NULL }, \
|
|
||||||
{ MODKEY, XK_0, view, NULL }, \
|
|
||||||
{ MODKEY, XK_1, view, tags[0] }, \
|
|
||||||
{ MODKEY, XK_2, view, tags[1] }, \
|
|
||||||
{ MODKEY, XK_3, view, tags[2] }, \
|
|
||||||
{ MODKEY, XK_4, view, tags[3] }, \
|
|
||||||
{ MODKEY, XK_5, view, tags[4] }, \
|
|
||||||
{ MODKEY, XK_6, view, tags[5] }, \
|
|
||||||
{ MODKEY, XK_7, view, tags[6] }, \
|
|
||||||
{ MODKEY, XK_8, view, tags[7] }, \
|
|
||||||
{ MODKEY, XK_9, view, tags[8] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_1, toggleview, tags[0] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_2, toggleview, tags[1] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_3, toggleview, tags[2] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_4, toggleview, tags[3] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_5, toggleview, tags[4] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_6, toggleview, tags[5] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_7, toggleview, tags[6] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_8, toggleview, tags[7] }, \
|
|
||||||
{ MODKEY|ControlMask, XK_9, toggleview, tags[8] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_0, tag, NULL }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_1, tag, tags[0] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_2, tag, tags[1] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_3, tag, tags[2] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_4, tag, tags[3] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_5, tag, tags[4] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_6, tag, tags[5] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_7, tag, tags[6] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_8, tag, tags[7] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_9, tag, tags[8] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_1, toggletag, tags[0] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_2, toggletag, tags[1] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_3, toggletag, tags[2] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_4, toggletag, tags[3] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_5, toggletag, tags[4] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_6, toggletag, tags[5] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_7, toggletag, tags[6] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_8, toggletag, tags[7] }, \
|
|
||||||
{ MODKEY|ControlMask|ShiftMask, XK_9, toggletag, tags[8] }, \
|
|
||||||
{ MODKEY|ShiftMask, XK_q, quit, NULL }, \
|
|
||||||
};
|
|
@ -1,5 +1,5 @@
|
|||||||
# dwm version
|
# dwm version
|
||||||
VERSION = 4.5
|
VERSION = 4.9
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
@ -17,13 +17,12 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
|
|||||||
# flags
|
# flags
|
||||||
CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
|
CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
LDFLAGS = -s ${LIBS}
|
LDFLAGS = -s ${LIBS}
|
||||||
#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
|
#CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
#LDFLAGS = -g ${LIBS}
|
#LDFLAGS = -g ${LIBS}
|
||||||
|
|
||||||
# Solaris
|
# Solaris
|
||||||
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
#LDFLAGS = ${LIBS}
|
#LDFLAGS = ${LIBS}
|
||||||
#CFLAGS += -xtarget=ultra
|
|
||||||
|
|
||||||
# compiler and linker
|
# compiler and linker
|
||||||
CC = cc
|
CC = cc
|
||||||
|
80
dwm.1
80
dwm.1
@ -1,26 +1,27 @@
|
|||||||
.TH DWM 1 dwm\-4.3
|
.TH DWM 1 dwm\-VERSION
|
||||||
.SH NAME
|
.SH NAME
|
||||||
dwm \- dynamic window manager
|
dwm \- dynamic window manager
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B dwm
|
.B dwm
|
||||||
.RB [ \-v ]
|
.RB [ \-v ]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
dwm is a dynamic window manager for X. It manages windows in tiled and
|
dwm is a dynamic window manager for X. It manages windows in tiled, monocle
|
||||||
floating layouts. Either layout can be applied dynamically, optimizing the
|
and floating layouts. Either layout can be applied dynamically, optimising the
|
||||||
environment for the application in use and the task performed.
|
environment for the application in use and the task performed.
|
||||||
.P
|
.P
|
||||||
In tiled layout windows are managed in a master and stacking area. The master
|
In tiled layouts windows are managed in a master and stacking area. The master
|
||||||
area contains the window which currently needs most attention, whereas the
|
area contains the window which currently needs most attention, whereas the
|
||||||
stacking area contains all other windows. In floating layout windows can be
|
stacking area contains all other windows. In monocle layout all windows are
|
||||||
resized and moved freely. Dialog windows are always managed floating,
|
maximised to the screen size. In floating layout windows can be resized and
|
||||||
regardless of the layout applied.
|
moved freely. Dialog windows are always managed floating, regardless of the
|
||||||
|
layout applied.
|
||||||
.P
|
.P
|
||||||
Windows are grouped by tags. Each window can be tagged with one or multiple
|
Windows are grouped by tags. Each window can be tagged with one or multiple
|
||||||
tags. Selecting certain tags displays all windows with these tags.
|
tags. Selecting certain tags displays all windows with these tags.
|
||||||
.P
|
.P
|
||||||
dwm contains a small status bar which displays all available tags, the layout,
|
dwm contains a small status bar which displays all available tags, the layout,
|
||||||
the title of the focused window, and the text read from standard input. A
|
the title of the focused window, and the text read from standard input. A
|
||||||
floating window is indicated with an empty square and a maximized
|
floating window is indicated with an empty square and a maximised
|
||||||
floating window is indicated with a filled square before the windows
|
floating window is indicated with a filled square before the windows
|
||||||
title. The selected tags are indicated with a different color. The tags of
|
title. The selected tags are indicated with a different color. The tags of
|
||||||
the focused window are indicated with a filled square in the top left
|
the focused window are indicated with a filled square in the top left
|
||||||
@ -56,14 +57,11 @@ click on a tag label adds/removes that tag to/from the focused window.
|
|||||||
Start
|
Start
|
||||||
.BR xterm.
|
.BR xterm.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Return
|
.B Mod1\-space
|
||||||
Zooms/cycles current window to/from master area (tiled layout only).
|
Toggles between layouts.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-b
|
.B Mod1\-Control\-space
|
||||||
Shows/hides the status bar.
|
Toggles between geometries.
|
||||||
.TP
|
|
||||||
.B Mod1\-h
|
|
||||||
Decreases the master area width about 5% (tiled layout only).
|
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-j
|
.B Mod1\-j
|
||||||
Focus next window.
|
Focus next window.
|
||||||
@ -71,34 +69,40 @@ Focus next window.
|
|||||||
.B Mod1\-k
|
.B Mod1\-k
|
||||||
Focus previous window.
|
Focus previous window.
|
||||||
.TP
|
.TP
|
||||||
|
.B Mod1\-h
|
||||||
|
Decrease master area size.
|
||||||
|
.TP
|
||||||
.B Mod1\-l
|
.B Mod1\-l
|
||||||
Increases the master area width about 5% (tiled layout only).
|
Increase master area size.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-m
|
.B Mod1\-Return
|
||||||
Toggles maximization of current window.
|
Zooms/cycles focused window to/from master area (tiled layouts only).
|
||||||
.TP
|
|
||||||
.B Mod1\-Shift\-[1..n]
|
|
||||||
Apply
|
|
||||||
.RB nth
|
|
||||||
tag to current window.
|
|
||||||
.TP
|
|
||||||
.B Mod1\-Shift\-0
|
|
||||||
Apply all tags to current window.
|
|
||||||
.TP
|
|
||||||
.B Mod1\-Control\-Shift\-[1..n]
|
|
||||||
Add/remove
|
|
||||||
.B nth
|
|
||||||
tag to/from current window.
|
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Shift\-c
|
.B Mod1\-Shift\-c
|
||||||
Close focused window.
|
Close focused window.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-space
|
|
||||||
Toggle between tiled and floating layout (affects all windows).
|
|
||||||
.TP
|
|
||||||
.B Mod1\-Shift\-space
|
.B Mod1\-Shift\-space
|
||||||
Toggle focused window between tiled and floating state.
|
Toggle focused window between tiled and floating state.
|
||||||
.TP
|
.TP
|
||||||
|
.B Mod1\-Tab
|
||||||
|
Toggles to the previously selected tags.
|
||||||
|
.TP
|
||||||
|
.B Mod1\-r
|
||||||
|
Re-applies tagging rules to all windows.
|
||||||
|
.TP
|
||||||
|
.B Mod1\-Shift\-[1..n]
|
||||||
|
Apply
|
||||||
|
.RB nth
|
||||||
|
tag to focused window.
|
||||||
|
.TP
|
||||||
|
.B Mod1\-Shift\-0
|
||||||
|
Apply all tags to focused window.
|
||||||
|
.TP
|
||||||
|
.B Mod1\-Control\-Shift\-[1..n]
|
||||||
|
Add/remove
|
||||||
|
.B nth
|
||||||
|
tag to/from focused window.
|
||||||
|
.TP
|
||||||
.B Mod1\-[1..n]
|
.B Mod1\-[1..n]
|
||||||
View all windows with
|
View all windows with
|
||||||
.BR nth
|
.BR nth
|
||||||
@ -117,13 +121,13 @@ Quit dwm.
|
|||||||
.SS Mouse commands
|
.SS Mouse commands
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button1
|
.B Mod1\-Button1
|
||||||
Move current window while dragging. Tiled windows will be toggled to the floating state.
|
Move focused window while dragging. Tiled windows will be toggled to the floating state.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button2
|
.B Mod1\-Button2
|
||||||
Zooms/cycles current window to/from master area. If it is floating (but not fixed) it will be toggled to the tiled state instead.
|
Zooms/cycles focused window to/from master area. If it is floating (but not fixed) it will be toggled to the tiled state instead.
|
||||||
.TP
|
.TP
|
||||||
.B Mod1\-Button3
|
.B Mod1\-Button3
|
||||||
Resize current window while dragging. Tiled windows will be toggled to the floating state.
|
Resize focused window while dragging. Tiled windows will be toggled to the floating state.
|
||||||
.SH CUSTOMIZATION
|
.SH CUSTOMIZATION
|
||||||
dwm is customized by creating a custom config.h and (re)compiling the source
|
dwm is customized by creating a custom config.h and (re)compiling the source
|
||||||
code. This keeps it fast, secure and simple.
|
code. This keeps it fast, secure and simple.
|
||||||
@ -144,7 +148,7 @@ can set the following environment variable (to use the older Motif
|
|||||||
backend instead):
|
backend instead):
|
||||||
.BR AWT_TOOLKIT=MToolkit .
|
.BR AWT_TOOLKIT=MToolkit .
|
||||||
.P
|
.P
|
||||||
Recent GTK 2.10.9+ versions contain a broken
|
GTK 2.10.9+ versions contain a broken
|
||||||
.BR Save\-As
|
.BR Save\-As
|
||||||
file dialog implementation,
|
file dialog implementation,
|
||||||
which requests to reconfigure its window size in an endless loop. However, its
|
which requests to reconfigure its window size in an endless loop. However, its
|
||||||
|
Reference in New Issue
Block a user