Introduction
Introduction Statistics Contact Development Disclaimer Help
tapplied Jukka's patch with s/ModKeyMask/MODKEY/g - dwm - [fork] customized bui…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit f95eed34b46dfe73f1511703e0a9301c9d8d1952
parent 1eaffa372f6c4186c3c1717113e3f575cf64fcfd
Author: [email protected] <unknown>
Date: Wed, 19 Jul 2006 16:38:39 +0200
applied Jukka's patch with s/ModKeyMask/MODKEY/g
Diffstat:
M client.c | 6 +++---
M config.mk | 2 +-
M dwm.h | 1 +
M event.c | 40 ++++++++++++++++-------------…
4 files changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -239,11 +239,11 @@ manage(Window w, XWindowAttributes *wa)
XGrabButton(dpy, Button1, ControlMask, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
- XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask,
+ XGrabButton(dpy, Button1, MODKEY, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
- XGrabButton(dpy, Button2, Mod1Mask, c->win, False, ButtonPressMask,
+ XGrabButton(dpy, Button2, MODKEY, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
- XGrabButton(dpy, Button3, Mod1Mask, c->win, False, ButtonPressMask,
+ XGrabButton(dpy, Button3, MODKEY, c->win, False, ButtonPressMask,
GrabModeAsync, GrabModeSync, None, None);
if(!c->isfloat)
diff --git a/config.mk b/config.mk
t@@ -7,7 +7,7 @@ MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
-VERSION = 0.3
+VERSION = 0.4
# includes and libs
LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
diff --git a/dwm.h b/dwm.h
t@@ -11,6 +11,7 @@
#define BGCOLOR "#0a2c2d"
#define FGCOLOR "#ddeeee"
#define BORDERCOLOR "#176164"
+#define MODKEY Mod1Mask /* Mod4Mask */
/*
#define BGCOLOR "#666699"
#define FGCOLOR "#eeeeee"
diff --git a/event.c b/event.c
t@@ -26,30 +26,30 @@ Key key[] = {
{ ControlMask, XK_1, appendtag, …
{ ControlMask, XK_2, appendtag, …
{ ControlMask, XK_3, appendtag, …
- { Mod1Mask, XK_0, view, …
- { Mod1Mask, XK_1, view, …
- { Mod1Mask, XK_2, view, …
- { Mod1Mask, XK_3, view, …
- { Mod1Mask, XK_j, focusn…
- { Mod1Mask, XK_k, focusp…
- { Mod1Mask, XK_m, maximi…
- { Mod1Mask, XK_space, dotile, …
- { Mod1Mask, XK_Return, zoom, …
+ { MODKEY, XK_0, view, …
+ { MODKEY, XK_1, view, …
+ { MODKEY, XK_2, view, …
+ { MODKEY, XK_3, view, …
+ { MODKEY, XK_j, focusnex…
+ { MODKEY, XK_k, focuspre…
+ { MODKEY, XK_m, maximize…
+ { MODKEY, XK_space, dotile, …
+ { MODKEY, XK_Return, zoom, …
{ ControlMask|ShiftMask,XK_0, heretag, { .i = Ts…
{ ControlMask|ShiftMask,XK_1, heretag, { .i = Td…
{ ControlMask|ShiftMask,XK_2, heretag, { .i = Tw…
{ ControlMask|ShiftMask,XK_3, heretag, { .i = Tw…
- { Mod1Mask|ShiftMask, XK_0, replacetag, …
- { Mod1Mask|ShiftMask, XK_1, replacetag, …
- { Mod1Mask|ShiftMask, XK_2, replacetag, …
- { Mod1Mask|ShiftMask, XK_3, replacetag, …
- { Mod1Mask|ShiftMask, XK_c, killclient, …
- { Mod1Mask|ShiftMask, XK_g, spawn, …
- { Mod1Mask|ShiftMask, XK_l, spawn, …
- { Mod1Mask|ShiftMask, XK_q, quit, …
- { Mod1Mask|ShiftMask, XK_space, dofloat, { 0 } },
- { Mod1Mask|ShiftMask, XK_w, spawn, …
- { Mod1Mask|ShiftMask, XK_Return, spawn, {…
+ { MODKEY|ShiftMask, XK_0, replacetag, …
+ { MODKEY|ShiftMask, XK_1, replacetag, …
+ { MODKEY|ShiftMask, XK_2, replacetag, …
+ { MODKEY|ShiftMask, XK_3, replacetag, …
+ { MODKEY|ShiftMask, XK_c, killclient, …
+ { MODKEY|ShiftMask, XK_g, spawn, …
+ { MODKEY|ShiftMask, XK_l, spawn, …
+ { MODKEY|ShiftMask, XK_q, quit, …
+ { MODKEY|ShiftMask, XK_space, dofloat, { …
+ { MODKEY|ShiftMask, XK_w, spawn, …
+ { MODKEY|ShiftMask, XK_Return, spawn, …
};
/* static */
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.