Compare commits
102 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 |
2
.hgtags
2
.hgtags
@ -50,3 +50,5 @@ e0ec0d5d8b1ef3ee04a83c7c0fee5853aa2ac6a6 4.3
|
|||||||
7c117df5d202530e85066d8b1ab02cef605c79ad 4.4.1
|
7c117df5d202530e85066d8b1ab02cef605c79ad 4.4.1
|
||||||
2acc60d6dfe28c101a8cd44a8aa710a38ae3607c 4.5
|
2acc60d6dfe28c101a8cd44a8aa710a38ae3607c 4.5
|
||||||
bcd7e18e196a00cc2e97ff3a4a58f3cdaba13856 4.6
|
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"),
|
||||||
|
51
config.def.h
51
config.def.h
@ -1,9 +1,8 @@
|
|||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
/* appearance */
|
/* appearance */
|
||||||
#define BARPOS BarTop /* BarBot, BarOff */
|
|
||||||
#define BORDERPX 1
|
#define BORDERPX 1
|
||||||
#define FONT "-*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*"
|
#define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"
|
||||||
#define NORMBORDERCOLOR "#cccccc"
|
#define NORMBORDERCOLOR "#cccccc"
|
||||||
#define NORMBGCOLOR "#cccccc"
|
#define NORMBGCOLOR "#cccccc"
|
||||||
#define NORMFGCOLOR "#000000"
|
#define NORMFGCOLOR "#000000"
|
||||||
@ -12,24 +11,33 @@
|
|||||||
#define SELFGCOLOR "#ffffff"
|
#define SELFGCOLOR "#ffffff"
|
||||||
|
|
||||||
/* tagging */
|
/* tagging */
|
||||||
const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
|
const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
Bool seltags[LENGTH(tags)] = {[0] = True};
|
|
||||||
Rule rules[] = {
|
Rule rules[] = {
|
||||||
/* class:instance:title regex tags regex isfloating */
|
/* class instance title tags ref isfloating */
|
||||||
{ "Firefox", "www", False },
|
{ "Gimp", NULL, NULL, NULL, True },
|
||||||
{ "Gimp", NULL, True },
|
};
|
||||||
{ "MPlayer", NULL, True },
|
|
||||||
{ "Acroread", 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) */
|
/* layout(s) */
|
||||||
#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */
|
|
||||||
#define RESIZEHINTS True /* False - respect size hints in tiled resizals */
|
#define RESIZEHINTS True /* False - respect size hints in tiled resizals */
|
||||||
#define SNAP 32 /* snap pixel */
|
#define SNAP 32 /* snap pixel */
|
||||||
|
|
||||||
Layout layouts[] = {
|
Layout layouts[] = {
|
||||||
/* symbol function */
|
/* symbol function isfloating */
|
||||||
{ "[]=", tile }, /* first entry is default */
|
{ "[]=", tilev, False }, /* first entry is default */
|
||||||
{ "><>", floating },
|
{ "[]|", tileh, False },
|
||||||
|
{ "><>", floating, True },
|
||||||
|
{ "[M]", monocle, True },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* key definitions */
|
/* key definitions */
|
||||||
@ -37,20 +45,19 @@ Layout layouts[] = {
|
|||||||
Key keys[] = {
|
Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn,
|
{ MODKEY, XK_p, spawn,
|
||||||
"exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'"
|
"exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
|
||||||
" -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" },
|
{ MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" },
|
|
||||||
{ MODKEY, XK_space, setlayout, NULL },
|
|
||||||
{ MODKEY, XK_b, togglebar, NULL },
|
|
||||||
{ MODKEY, XK_j, focusnext, NULL },
|
{ MODKEY, XK_j, focusnext, NULL },
|
||||||
{ MODKEY, XK_k, focusprev, NULL },
|
{ MODKEY, XK_k, focusprev, NULL },
|
||||||
{ MODKEY, XK_h, setmwfact, "-0.05" },
|
{ MODKEY, XK_r, reapply, NULL },
|
||||||
{ MODKEY, XK_l, setmwfact, "+0.05" },
|
{ MODKEY, XK_h, setmfact, "-0.05" },
|
||||||
{ MODKEY, XK_m, togglemax, NULL },
|
{ MODKEY, XK_l, setmfact, "+0.05" },
|
||||||
{ MODKEY, XK_Return, zoom, NULL },
|
{ MODKEY, XK_Return, zoom, NULL },
|
||||||
{ MODKEY, XK_Tab, viewprevtag, NULL },
|
{ MODKEY, XK_Tab, viewprevtag, NULL },
|
||||||
{ MODKEY|ShiftMask, XK_space, togglefloating, NULL },
|
|
||||||
{ MODKEY|ShiftMask, XK_c, killclient, 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_0, view, NULL },
|
||||||
{ MODKEY, XK_1, view, tags[0] },
|
{ MODKEY, XK_1, view, tags[0] },
|
||||||
{ MODKEY, XK_2, view, tags[1] },
|
{ MODKEY, XK_2, view, tags[1] },
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# dwm version
|
# dwm version
|
||||||
VERSION = 4.7
|
VERSION = 4.9
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
@ -23,7 +23,6 @@ LDFLAGS = -s ${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
|
||||||
|
81
dwm.1
81
dwm.1
@ -5,22 +5,23 @@ dwm \- dynamic window manager
|
|||||||
.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,17 +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\-Tab
|
.B Mod1\-Control\-space
|
||||||
Toggles to the previously selected tags.
|
Toggles between geometries.
|
||||||
.TP
|
|
||||||
.B Mod1\-b
|
|
||||||
Shows/hides the status bar.
|
|
||||||
.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.
|
||||||
@ -74,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
|
||||||
@ -120,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.
|
||||||
@ -147,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