Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
reverting to old resize policy
[dwm.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
c42a760
..
f6c33ea
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-18,24
+18,10
@@
typedef struct {
Bool isfloat;
} Rule;
Bool isfloat;
} Rule;
-/* CUSTOMIZE */
-static Rule rule[] = {
- /* class:instance tags isfloat */
- { "Firefox.*", { [Tnet] = "net" }, False },
- { "Gimp.*", { 0 }, True},
-};
+TAGS
+RULES
-char *tags[TLast] = {
- [Tfnord] = "fnord",
- [Tdev] = "dev",
- [Tnet] = "net",
- [Twork] = "work",
- [Tmisc] = "misc",
-};
-
-void (*arrange)(Arg *) = dotile;
-
-/* END CUSTOMIZE */
+void (*arrange)(Arg *) = DEFMODE;
/* extern */
/* extern */
@@
-216,3
+202,17
@@
view(Arg *arg)
arrange(NULL);
drawall();
}
arrange(NULL);
drawall();
}
+
+void
+viewnext(Arg *arg)
+{
+ arg->i = (tsel < TLast-1) ? tsel+1 : 0;
+ view(arg);
+}
+
+void
+viewprev(Arg *arg)
+{
+ arg->i = (tsel > 0) ? tsel-1 : TLast-1;
+ view(arg);
+}