mirror of
git://git.suckless.org/dwm
synced 2025-07-25 17:22:07 -07:00
Compare commits
221 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
26445a0dc9 | ||
|
b5068e32e9 | ||
|
f099d2d5b5 | ||
|
80a9da555e | ||
|
d21026f0a1 | ||
|
e5a1e77351 | ||
|
8262d9e663 | ||
|
90af1ced3c | ||
|
5ccd42f807 | ||
|
1586b7a02d | ||
|
2420071f4c | ||
|
04c26574b8 | ||
|
b1a28ae1da | ||
|
f68a01cd76 | ||
|
2b625eb73e | ||
|
0f1f30daca | ||
|
dec4850d05 | ||
|
0de4197cc5 | ||
|
a372248b80 | ||
|
69e7d7dfd3 | ||
|
c99fe7dd7d | ||
|
d6670a800d | ||
|
6288c44697 | ||
|
d5c5c52b30 | ||
|
d0b4575bf4 | ||
|
03518ce49e | ||
|
cd8bb06af5 | ||
|
3150a8a1be | ||
|
b3c5f5435a | ||
|
a692bdcf2b | ||
|
d83454f6b7 | ||
|
27b0142203 | ||
|
867ba36030 | ||
|
e83f36db10 | ||
|
212f417e44 | ||
|
3a392b8558 | ||
|
92fe06b501 | ||
|
6cf29bff33 | ||
|
60c06a7cb4 | ||
|
1147546122 | ||
|
d384cee751 | ||
|
5c710cf89c | ||
|
8a111c181e | ||
|
2255bf46a0 | ||
|
04797343db | ||
|
e7d41cc188 | ||
|
22d8818850 | ||
|
6784429c3c | ||
|
37fea84de8 | ||
|
c14d293e51 | ||
|
79b1657a19 | ||
|
d24837f1ad | ||
|
3c2d303c0e | ||
|
1e20a0f78a | ||
|
96f9855248 | ||
|
3c48858ffa | ||
|
dd46d5b588 | ||
|
0bc4e41ebd | ||
|
703c4dd253 | ||
|
b68528d85d | ||
|
a644baf674 | ||
|
c1f8688bfa | ||
|
bea4dd2490 | ||
|
83d10be1c1 | ||
|
1529058f27 | ||
|
36311d88af | ||
|
f1a2a3c850 | ||
|
ee734fae6b | ||
|
62d3caa999 | ||
|
4c9b397ff9 | ||
|
5c6545adf5 | ||
|
a704b1ee34 | ||
|
f83d61dfe8 | ||
|
c6180949a7 | ||
|
1973ab0643 | ||
|
427053f8d1 | ||
|
a88e0373ef | ||
|
aa9f2be24e | ||
|
c53b29e60b | ||
|
d6bdd03d91 | ||
|
1144e98394 | ||
|
7671d03a90 | ||
|
bc554d45d8 | ||
|
ac4caea921 | ||
|
161f2d921b | ||
|
210378f198 | ||
|
7879616a75 | ||
|
9e8dd3479d | ||
|
0b72be924d | ||
|
91e902f7fe | ||
|
30fed9a211 | ||
|
c45d46ad9a | ||
|
6f55de8310 | ||
|
07ad298133 | ||
|
f0a4845e7d | ||
|
82ec7a7ed4 | ||
|
e7300e0f6f | ||
|
c3feffa1e2 | ||
|
956a430054 | ||
|
01056b6636 | ||
|
eb260b1a41 | ||
|
7fe81359d4 | ||
|
a3a859b4e9 | ||
|
9c066c24b3 | ||
|
0a668922a4 | ||
|
5762964232 | ||
|
cba6b211c2 | ||
|
42750a621b | ||
|
8ef465d592 | ||
|
33fe200b52 | ||
|
91fffb3f7d | ||
|
1fa31efebf | ||
|
244addb3f4 | ||
|
c13be8d620 | ||
|
dc39ae8568 | ||
|
966d76a428 | ||
|
7151bf8329 | ||
|
dfecd46190 | ||
|
5bc4db0f76 | ||
|
999d6e795f | ||
|
636075297c | ||
|
6877a00033 | ||
|
0927d635bc | ||
|
450b08dde2 | ||
|
da80487c07 | ||
|
d9779c06fc | ||
|
20996c6c5a | ||
|
8dc9fcf1b9 | ||
|
fc21dd4b7e | ||
|
758b100d12 | ||
|
8420fb1ced | ||
|
f6128a16f9 | ||
|
87526be6f0 | ||
|
565050ac51 | ||
|
5e408d8ff6 | ||
|
1724f7fa43 | ||
|
3e6fe6b541 | ||
|
6620615ab9 | ||
|
61c3095f2f | ||
|
a72dc2fec2 | ||
|
8b17f5517b | ||
|
cd96232f7e | ||
|
a9e145fe6d | ||
|
5dd92c7655 | ||
|
52bd69c2a4 | ||
|
ca376970db | ||
|
8352f2b3a8 | ||
|
d4bfde79f3 | ||
|
7ac8c1d4e1 | ||
|
16e1ef5d40 | ||
|
1d729384d1 | ||
|
25c1eb28f9 | ||
|
d719cc9a0e | ||
|
9cde6570cc | ||
|
e408ca97d8 | ||
|
183dc670a3 | ||
|
25947bcfdb | ||
|
1ddfc571ae | ||
|
21cd59a630 | ||
|
6cbe47d481 | ||
|
029655bb22 | ||
|
27db9d4448 | ||
|
176408afa8 | ||
|
64674c395b | ||
|
b9dee2c6f1 | ||
|
a73ff905b0 | ||
|
e3f0445df1 | ||
|
ab06f7444b | ||
|
a2a3590979 | ||
|
e8aafb8e91 | ||
|
18b1312449 | ||
|
80ee95473b | ||
|
454a04acdf | ||
|
891831fe62 | ||
|
cdb8e27453 | ||
|
5c4913e983 | ||
|
fa5ae54bbb | ||
|
7de534192c | ||
|
54dc0d542c | ||
|
913333f518 | ||
|
d702f39274 | ||
|
0d8671a5ad | ||
|
38e9b67026 | ||
|
a3bbdb1b7b | ||
|
d53ceee682 | ||
|
78f56672b5 | ||
|
c2fff604a7 | ||
|
6644a6aa2e | ||
|
3da2453997 | ||
|
2ce37bc69e | ||
|
f27ccc5c60 | ||
|
2dbfda72f0 | ||
|
7df39f3fc7 | ||
|
0b45199cec | ||
|
3632d7132f | ||
|
565697087b | ||
|
ea0008cba2 | ||
|
af508c2e82 | ||
|
f0d1d5206f | ||
|
1c80c05587 | ||
|
1e350be229 | ||
|
1a26389e2b | ||
|
bf9da23f07 | ||
|
2373940215 | ||
|
90687482ad | ||
|
5ab627c06c | ||
|
76d7e80fc4 | ||
|
af8049bce8 | ||
|
2bb51b3246 | ||
|
b16d8282be | ||
|
fef4614772 | ||
|
be39dddcc5 | ||
|
6d209b9b29 | ||
|
57a0788bd8 | ||
|
3ad906eede | ||
|
0be9fb8797 | ||
|
62a491e36d | ||
|
0b5dcf229f | ||
|
fda92f46aa | ||
|
a62ea4062f | ||
|
7dc28d130f |
13
.hgtags
13
.hgtags
@@ -57,3 +57,16 @@ d6d3085307d8d98b8b012b669e858fd787befeb1 4.7
|
||||
ce355cea9bb89e162f61913737a46908cdfa7e45 5.1
|
||||
e4bcaca8e6ef13d2c3b81f1218ad15e5da4d68bd 5.2
|
||||
4004d61160355d869a7d2672561caad440751ba0 5.3
|
||||
335301ed102fec9b1a15d06bfa0184d53b38fa54 5.3.1
|
||||
8b7836a471f8f9ee61bec980df00971888d76343 5.4
|
||||
85a78d8afa0fe8b106a8223b5327e5bddb5dd5e3 5.4.1
|
||||
deaa276abac17ca08fbeb936916e4c8292d293a4 5.5
|
||||
5550702215773aad462f22a774dced9b87437c51 5.6
|
||||
e47a47bd3ed42fd3cf023572147b75ebc2adef82 5.6.1
|
||||
257403d4cd962cac03344a871ea56cc742bae38e 5.7
|
||||
48c3f87c335d6606e55fbae97267fa6b39ca56e0 5.7.1
|
||||
15761ac5e2f1e9010900f891616a24a22d82f128 5.7.2
|
||||
60ea8fed13ab750c6717f2764cbf9c13bb6f0d0a 5.8
|
||||
1ed1e75c9c2e395a2c475b52657a430bd95070c7 5.8.1
|
||||
a043f08008051ca02ae87eb170cd066d8c8315a0 5.8.2
|
||||
dd74622a4785e55658b05b36834fa0c41084a8c1 5.9
|
||||
|
69
BUGS
Normal file
69
BUGS
Normal file
@@ -0,0 +1,69 @@
|
||||
---
|
||||
|
||||
18:17 < Biolunar> when i change my resolution in dwm (to a smaller one) and then back to the native, the top bar is not repainted. that's since 5.7.2, in 5.6 it worked fine
|
||||
18:19 < Biolunar> is it just happening to me or a (known) bug?
|
||||
18:24 < Biolunar> and in addition, mplayers fullscreen is limited to the small resolution after i changed it back to the native
|
||||
|
||||
reproducible with xrandr -s but not with --output and --mode, strange
|
||||
|
||||
---
|
||||
|
||||
yet another corner case:
|
||||
open a terminal, focus another monitor, but without moving the mouse
|
||||
pointer there
|
||||
if there is no client on the other monitor to get the focus, then the
|
||||
terminal will be unfocused but it will accept input
|
||||
|
||||
---
|
||||
|
||||
Donald Allen reported this:
|
||||
|
||||
starting emacs from dmenu in archlinux results in missing configure of emacs, but mod1-space or mod1-shift-space fix this problem. this problem is new and did not happen in 1.6 xorg servers
|
||||
|
||||
Starting emacs from xterm doesnt show this problem, he uses tag 8 for emacs
|
||||
|
||||
---
|
||||
|
||||
2009/12/7 Alexandr Krylovskiy <wing_AT_tversu.ru>:
|
||||
> Fullscreen mode with flash applications (youtube, for example) doesn't
|
||||
> work properly neither in tiled nor in floating mode.
|
||||
> Fullscreen window closes immediately after opening.
|
||||
|
||||
This is a known bug (for some curiosity I received the same report via
|
||||
privmail from 2 other people within one week, really strange).
|
||||
The quick fix is commenting out the code in lines 817/818 in hg tip
|
||||
dwm. I cannot confirm this has no side effects (I think it does) and I
|
||||
will address this issue shortly with a real fix.
|
||||
|
||||
---
|
||||
|
||||
SDL seems to not like non-reparenting WMs:
|
||||
|
||||
> I would like to mention SDL problems, however SDL is not crucial to
|
||||
> me anymore; people that really care about it should speak up and
|
||||
> propose dwm / SDL patch or cooperation scheme in that matter.
|
||||
|
||||
Patching SDL, bugging them?
|
||||
|
||||
---
|
||||
|
||||
voltaic reports this:
|
||||
|
||||
When I use two monitors, one larger in resolution than the other, the
|
||||
bar is drawn using the smaller x-dimension on both screens. I think
|
||||
what's happening is that there are two bars drawn, but the short bar
|
||||
is always on top of the long bar such that I can't see the information
|
||||
under the short bar. If I switch to the small screen, hide the short
|
||||
bar, and then switch to the large screen, the long bar is drawn
|
||||
correctly.
|
||||
|
||||
A similar problem occurs when I have started dwm on a small resolution
|
||||
monitor (laptop screen) and then I switch to a large external display.
|
||||
When I do this, the bar itself is drawn for the original smaller
|
||||
resolution, but the information to be printed on the bar is
|
||||
right-aligned for a longer bar. So what I see is a bar that has the
|
||||
right hand side of it cut-off. See attached screenshot.
|
||||
|
||||
I am using standard options for xrandr such as --output VGA1 --auto, etc.
|
||||
|
||||
---
|
17
LICENSE
17
LICENSE
@@ -1,14 +1,17 @@
|
||||
MIT/X Consortium License
|
||||
|
||||
© 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 Jukka Salmi <jukka at salmi dot ch>
|
||||
© 2007 Premysl Hruby <dfenze at gmail dot com>
|
||||
© 2007 Szabolcs Nagy <nszabolcs at gmail dot com>
|
||||
© 2007 Christof Musik <christof at sendfax dot de>
|
||||
© 2006-2011 Anselm R Garbe <anselm@garbe.us>
|
||||
© 2007-2011 Peter Hartlich <sgkkr at hartlich dot com>
|
||||
© 2010-2011 Connor Lane Smith <cls@lubutu.com>
|
||||
© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
|
||||
© 2007-2009 Premysl Hruby <dfenze at gmail dot com>
|
||||
© 2007-2009 Szabolcs Nagy <nszabolcs at gmail dot com>
|
||||
© 2007-2009 Christof Musik <christof at sendfax dot de>
|
||||
© 2009 Mate Nagy <mnagy at port70 dot net>
|
||||
© 2007-2008 Enno Gottox Boland <gottox at s01 dot de>
|
||||
© 2007-2008 Peter Hartlich <sgkkr at hartlich dot com>
|
||||
© 2008 Martin Hurton <martin dot hurton at gmail dot com>
|
||||
© 2008 Neale Pickett <neale dot woozle dot org>
|
||||
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
|
8
README
8
README
@@ -38,11 +38,11 @@ the DISPLAY environment variable is set correctly, e.g.:
|
||||
In order to display status info in the bar, you can do something
|
||||
like this in your .xinitrc:
|
||||
|
||||
while true
|
||||
while xsetroot -name "`date` `uptime | sed 's/.*,//'`"
|
||||
do
|
||||
echo `date` `uptime | sed 's/.*,//'`
|
||||
sleep 1
|
||||
done | dwm
|
||||
sleep 1
|
||||
done &
|
||||
exec dwm
|
||||
|
||||
|
||||
Configuration
|
||||
|
4
TODO
Normal file
4
TODO
Normal file
@@ -0,0 +1,4 @@
|
||||
- add a flag to Key to execute the command on release (needed for commands
|
||||
affecting the keyboard grab, see scrot -s for example)
|
||||
- add updategeom() hook for external tools like dzen
|
||||
- consider onscreenkeyboard hooks for tablet deployment
|
52
config.def.h
52
config.def.h
@@ -1,36 +1,33 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
/* appearance */
|
||||
static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*";
|
||||
static const char normbordercolor[] = "#cccccc";
|
||||
static const char normbgcolor[] = "#cccccc";
|
||||
static const char normfgcolor[] = "#000000";
|
||||
static const char selbordercolor[] = "#0066ff";
|
||||
static const char selbgcolor[] = "#0066ff";
|
||||
static const char selfgcolor[] = "#ffffff";
|
||||
static unsigned int borderpx = 1; /* border pixel of windows */
|
||||
static unsigned int snap = 32; /* snap pixel */
|
||||
static Bool showbar = True; /* False means no bar */
|
||||
static Bool topbar = True; /* False means bottom bar */
|
||||
static Bool readin = True; /* False means do not read stdin */
|
||||
static Bool usegrab = False; /* True means grabbing the X server
|
||||
during mouse-based resizals */
|
||||
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
|
||||
static const char normbordercolor[] = "#444444";
|
||||
static const char normbgcolor[] = "#222222";
|
||||
static const char normfgcolor[] = "#bbbbbb";
|
||||
static const char selbordercolor[] = "#005577";
|
||||
static const char selbgcolor[] = "#005577";
|
||||
static const char selfgcolor[] = "#eeeeee";
|
||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||
static const unsigned int snap = 32; /* snap pixel */
|
||||
static const Bool showbar = True; /* False means no bar */
|
||||
static const Bool topbar = True; /* False means bottom bar */
|
||||
|
||||
/* tagging */
|
||||
static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
static unsigned int tagset[] = {1, 1}; /* after start, first tag is selected */
|
||||
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||
|
||||
static Rule rules[] = {
|
||||
/* class instance title tags mask isfloating */
|
||||
{ "Gimp", NULL, NULL, 0, True },
|
||||
{ "Firefox", NULL, NULL, 1 << 8, True },
|
||||
static const Rule rules[] = {
|
||||
/* class instance title tags mask isfloating monitor */
|
||||
{ "Gimp", NULL, NULL, 0, True, -1 },
|
||||
{ "Firefox", NULL, NULL, 1 << 8, False, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
static float mfact = 0.55; /* factor of master area size [0.05..0.95] */
|
||||
static Bool resizehints = True; /* False means respect size hints in tiled resizals */
|
||||
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
|
||||
static const int nmaster = 1; /* number of clients in master area */
|
||||
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
|
||||
|
||||
static Layout layouts[] = {
|
||||
static const Layout layouts[] = {
|
||||
/* symbol arrange function */
|
||||
{ "[]=", tile }, /* first entry is default */
|
||||
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||
@@ -59,6 +56,8 @@ static Key keys[] = {
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
||||
{ MODKEY, XK_Return, zoom, {0} },
|
||||
@@ -71,6 +70,10 @@ static Key keys[] = {
|
||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
||||
{ MODKEY, XK_period, focusmon, {.i = +1 } },
|
||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||
TAGKEYS( XK_1, 0)
|
||||
TAGKEYS( XK_2, 1)
|
||||
TAGKEYS( XK_3, 2)
|
||||
@@ -84,8 +87,7 @@ static Key keys[] = {
|
||||
};
|
||||
|
||||
/* button definitions */
|
||||
/* click can be a tag number (starting at 0),
|
||||
* ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||
static Button buttons[] = {
|
||||
/* click event mask button function argument */
|
||||
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
||||
|
10
config.mk
10
config.mk
@@ -1,5 +1,5 @@
|
||||
# dwm version
|
||||
VERSION = 5.3
|
||||
VERSION = 6.0
|
||||
|
||||
# Customize below to fit your system
|
||||
|
||||
@@ -10,9 +10,9 @@ MANPREFIX = ${PREFIX}/share/man
|
||||
X11INC = /usr/X11R6/include
|
||||
X11LIB = /usr/X11R6/lib
|
||||
|
||||
# Xinerama, un-comment if you want it
|
||||
#XINERAMALIBS = -L${X11LIB} -lXinerama
|
||||
#XINERAMAFLAGS = -DXINERAMA
|
||||
# Xinerama
|
||||
XINERAMALIBS = -L${X11LIB} -lXinerama
|
||||
XINERAMAFLAGS = -DXINERAMA
|
||||
|
||||
# includes and libs
|
||||
INCS = -I. -I/usr/include -I${X11INC}
|
||||
@@ -20,7 +20,9 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
|
||||
|
||||
# flags
|
||||
CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
||||
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
||||
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
||||
#LDFLAGS = -g ${LIBS}
|
||||
LDFLAGS = -s ${LIBS}
|
||||
|
||||
# Solaris
|
||||
|
84
dwm.1
84
dwm.1
@@ -19,14 +19,14 @@ layout applied.
|
||||
Windows are grouped by tags. Each window can be tagged with one or multiple
|
||||
tags. Selecting certain tags displays all windows with these tags.
|
||||
.P
|
||||
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
|
||||
floating window is indicated with an empty square and a maximised
|
||||
floating window is indicated with a filled square before the windows
|
||||
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
|
||||
corner. The tags which are applied to one or more windows are indicated
|
||||
with an empty square in the top left corner.
|
||||
Each screen contains a small status bar which displays all available tags, the
|
||||
layout, the title of the focused window, and the text read from the root window
|
||||
name property, if the screen is focused. A floating window is indicated with an
|
||||
empty square and a maximised floating window is indicated with a filled square
|
||||
before the windows 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 corner. The tags which are applied to one or more windows are
|
||||
indicated with an empty square in the top left corner.
|
||||
.P
|
||||
dwm draws a small border around windows to indicate the focus state.
|
||||
.SH OPTIONS
|
||||
@@ -36,8 +36,10 @@ prints version information to standard output, then exits.
|
||||
.SH USAGE
|
||||
.SS Status bar
|
||||
.TP
|
||||
.B Standard input
|
||||
is read and displayed in the status text area.
|
||||
.B X root window name
|
||||
is read and displayed in the status text area. It can be set with the
|
||||
.BR xsetroot (1)
|
||||
command.
|
||||
.TP
|
||||
.B Button1
|
||||
click on a tag label to display all windows with that tag, click on the layout
|
||||
@@ -55,7 +57,19 @@ click on a tag label adds/removes that tag to/from the focused window.
|
||||
.TP
|
||||
.B Mod1\-Shift\-Return
|
||||
Start
|
||||
.BR xterm.
|
||||
.BR uxterm (1).
|
||||
.TP
|
||||
.B Mod1\-,
|
||||
Focus previous screen, if any.
|
||||
.TP
|
||||
.B Mod1\-.
|
||||
Focus next screen, if any.
|
||||
.TP
|
||||
.B Mod1\-Shift\-,
|
||||
Send focused window to previous screen, if any.
|
||||
.TP
|
||||
.B Mod1\-Shift\-.
|
||||
Send focused window to next screen, if any.
|
||||
.TP
|
||||
.B Mod1\-b
|
||||
Toggles bar on and off.
|
||||
@@ -78,12 +92,18 @@ Focus next window.
|
||||
.B Mod1\-k
|
||||
Focus previous window.
|
||||
.TP
|
||||
.B Mod1\-h
|
||||
Decrease master area size.
|
||||
.B Mod1\-i
|
||||
Increase clients in master area.
|
||||
.TP
|
||||
.B Mod1\-d
|
||||
Decrease clients in master area.
|
||||
.TP
|
||||
.B Mod1\-l
|
||||
Increase master area size.
|
||||
.TP
|
||||
.B Mod1\-h
|
||||
Decrease master area size.
|
||||
.TP
|
||||
.B Mod1\-Return
|
||||
Zooms/cycles focused window to/from master area (tiled layouts only).
|
||||
.TP
|
||||
@@ -97,30 +117,22 @@ Toggle focused window between tiled and floating state.
|
||||
Toggles to the previously selected tags.
|
||||
.TP
|
||||
.B Mod1\-Shift\-[1..n]
|
||||
Apply
|
||||
.RB nth
|
||||
tag to focused window.
|
||||
Apply 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.
|
||||
Add/remove nth tag to/from focused window.
|
||||
.TP
|
||||
.B Mod1\-[1..n]
|
||||
View all windows with
|
||||
.BR nth
|
||||
tag.
|
||||
View all windows with nth tag.
|
||||
.TP
|
||||
.B Mod1\-0
|
||||
View all windows with any tag.
|
||||
.TP
|
||||
.B Mod1\-Control\-[1..n]
|
||||
Add/remove all windows with
|
||||
.BR nth
|
||||
tag to/from the view.
|
||||
Add/remove all windows with nth tag to/from the view.
|
||||
.TP
|
||||
.B Mod1\-Shift\-q
|
||||
Quit dwm.
|
||||
@@ -140,19 +152,19 @@ code. This keeps it fast, secure and simple.
|
||||
.SH SEE ALSO
|
||||
.BR dmenu (1)
|
||||
.SH BUGS
|
||||
The status bar may display
|
||||
.BR "EOF"
|
||||
when dwm has been started by an X session manager like
|
||||
.BR xdm (1),
|
||||
because those close standard output before executing dwm.
|
||||
.P
|
||||
Java applications which use the XToolkit/XAWT backend may draw grey windows
|
||||
only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early
|
||||
JDK 1.6 versions, because it assumes a reparenting window manager. As a workaround
|
||||
you can use JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or you
|
||||
can set the following environment variable (to use the older Motif
|
||||
backend instead):
|
||||
.BR AWT_TOOLKIT=MToolkit .
|
||||
JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds
|
||||
are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the
|
||||
environment variable
|
||||
.BR AWT_TOOLKIT=MToolkit
|
||||
(to use the older Motif backend instead) or running
|
||||
.B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D
|
||||
or
|
||||
.B wmname LG3D
|
||||
(to pretend that a non-reparenting window manager is running that the
|
||||
XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable
|
||||
.BR _JAVA_AWT_WM_NONREPARENTING=1 .
|
||||
.P
|
||||
GTK 2.10.9+ versions contain a broken
|
||||
.BR Save\-As
|
||||
|
42
transient.c
Normal file
42
transient.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/* cc transient.c -o transient -lX11 */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
|
||||
int main(void) {
|
||||
Display *d;
|
||||
Window r, f, t = None;
|
||||
XSizeHints h;
|
||||
XEvent e;
|
||||
|
||||
d = XOpenDisplay(NULL);
|
||||
if (!d)
|
||||
exit(1);
|
||||
r = DefaultRootWindow(d);
|
||||
|
||||
f = XCreateSimpleWindow(d, r, 100, 100, 400, 400, 0, 0, 0);
|
||||
h.min_width = h.max_width = h.min_height = h.max_height = 400;
|
||||
h.flags = PMinSize | PMaxSize;
|
||||
XSetWMNormalHints(d, f, &h);
|
||||
XStoreName(d, f, "floating");
|
||||
XMapWindow(d, f);
|
||||
|
||||
XSelectInput(d, f, ExposureMask);
|
||||
while (1) {
|
||||
XNextEvent(d, &e);
|
||||
|
||||
if (t == None) {
|
||||
sleep(5);
|
||||
t = XCreateSimpleWindow(d, r, 50, 50, 100, 100, 0, 0, 0);
|
||||
XSetTransientForHint(d, t, f);
|
||||
XStoreName(d, t, "transient");
|
||||
XMapWindow(d, t);
|
||||
XSelectInput(d, t, ExposureMask);
|
||||
}
|
||||
}
|
||||
|
||||
XCloseDisplay(d);
|
||||
exit(0);
|
||||
}
|
Reference in New Issue
Block a user