Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
replaced Nmacros with LENGTH(x) macro
[dwm.git]
/
config.def.h
diff --git
a/config.def.h
b/config.def.h
index
fd37293
..
1dcd7f9
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-11,11
+11,13
@@
#define SELBGCOLOR "#0066ff"
#define SELFGCOLOR "#ffffff"
#define SELBGCOLOR "#0066ff"
#define SELFGCOLOR "#ffffff"
+/* convenience */
+#define LENGTH(x) (sizeof x / sizeof x[0])
+
/* tagging */
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
/* tagging */
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
-#define NTAGS (sizeof tags / sizeof tags[0])
-Bool seltags[NTAGS] = {[0] = True};
-Bool prevtags[NTAGS] = {[0] = True};
+Bool seltags[LENGTH(tags)] = {[0] = True};
+Bool prevtags[LENGTH(tags)] = {[0] = True};
Rule rules[] = {
/* class:instance:title regex tags regex isfloating */
{ "Firefox", "www", False },
Rule rules[] = {
/* class:instance:title regex tags regex isfloating */
{ "Firefox", "www", False },
@@
-25,7
+27,6
@@
Rule rules[] = {
};
/* layout(s) */
};
/* layout(s) */
-#define ISTILE isarrange(tile) /* || isarrange(<custom>) */
#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */
#define SNAP 32 /* snap pixel */
Layout layouts[] = {
#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */
#define SNAP 32 /* snap pixel */
Layout layouts[] = {