Browse Source

applied Sanders tiny patches

main
Anselm R.Garbe 18 years ago
parent
commit
42277b1110
4 changed files with 8 additions and 7 deletions
  1. +1
    -1
      Makefile
  2. +4
    -4
      config.arg.h
  3. +1
    -1
      dwm.html
  4. +2
    -1
      main.c

+ 1
- 1
Makefile View File

@ -19,7 +19,7 @@ options:
@echo CC $< @echo CC $<
@${CC} -c ${CFLAGS} $< @${CC} -c ${CFLAGS} $<
${OBJ}: dwm.h config.h
${OBJ}: dwm.h config.h config.mk
config.h: config.h:
@echo creating $@ from config.default.h @echo creating $@ from config.default.h


+ 4
- 4
config.arg.h View File

@ -28,8 +28,8 @@ static Key key[] = { \
{ MODKEY, XK_l, viewnext, { 0 } }, \ { MODKEY, XK_l, viewnext, { 0 } }, \
{ MODKEY, XK_m, togglemax, { 0 } }, \ { MODKEY, XK_m, togglemax, { 0 } }, \
{ MODKEY, XK_p, spawn, \ { MODKEY, XK_p, spawn, \
{ .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | \
awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | dmenu`" } }, \
{ .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \
"awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | dmenu`" } }, \
{ MODKEY, XK_space, togglemode, { 0 } }, \ { MODKEY, XK_space, togglemode, { 0 } }, \
{ MODKEY, XK_Return, zoom, { 0 } }, \ { MODKEY, XK_Return, zoom, { 0 } }, \
{ MODKEY|ControlMask, XK_1, appendtag, { .i = 0 } }, \ { MODKEY|ControlMask, XK_1, appendtag, { .i = 0 } }, \
@ -41,8 +41,8 @@ static Key key[] = { \
{ MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
{ MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
{ MODKEY|ShiftMask, XK_Return, spawn, \ { MODKEY|ShiftMask, XK_Return, spawn, \
{ .cmd = "exec urxvt -bg '#ffffea' +sb \
-fn '-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*'" } }, \
{ .cmd = "exec urxvt -bg '#ffffea' +sb " \
"-fn '-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*'" } }, \
}; };
#define RULES \ #define RULES \


+ 1
- 1
dwm.html View File

@ -21,7 +21,7 @@
<p> <p>
dwm is a dynamic window manager for X11. dwm is a dynamic window manager for X11.
</p> </p>
<h4>Philosophy</h4>
<h4>Background</h4>
<p> <p>
As founder and main developer of wmii I came to the conclusion that As founder and main developer of wmii I came to the conclusion that
wmii is too clunky for my needs. I don't need so many funky features wmii is too clunky for my needs. I don't need so many funky features


+ 2
- 1
main.c View File

@ -240,6 +240,8 @@ main(int argc, char *argv[])
dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
dc.gc = XCreateGC(dpy, root, 0, 0); dc.gc = XCreateGC(dpy, root, 0, 0);
strcpy(stext, "dwm-"VERSION);
drawstatus(); drawstatus();
issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
@ -248,7 +250,6 @@ main(int argc, char *argv[])
wa.cursor = cursor[CurNormal]; wa.cursor = cursor[CurNormal];
XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
strcpy(stext, "dwm-"VERSION);
scan(); scan();
/* main event loop, also reads status text from stdin */ /* main event loop, also reads status text from stdin */


Loading…
Cancel
Save