/* CUSTOMIZE */
static Rule rule[] = {
- /* class instance tags isfloat */
- { "Firefox.*", { [Twww] = "www" }, False },
- { "Gimp.*", { 0 }, True},
+ /* class:instance tags isfloat */
+ { "Firefox.*", { [Twww] = "www" }, False },
+ { "Gimp.*", { 0 }, True},
};
-/* extern */
-
-/* CUSTOMIZE */
char *tags[TLast] = {
[Tscratch] = "scratch",
[Tdev] = "dev",
[Twww] = "www",
[Twork] = "work",
};
+
void (*arrange)(Arg *) = dotile;
+/* END CUSTOMIZE */
+
+/* extern */
+
void
appendtag(Arg *arg)
{
{
Client *c;
- arrange = dofloat;
for(c = clients; c; c = c->next) {
+ c->ismax = False;
if(c->tags[tsel]) {
resize(c, True, TopLeft);
}
void
dotile(Arg *arg)
{
- Client *c;
int n, i, w, h;
+ Client *c;
w = sw - mw;
- arrange = dotile;
for(n = 0, c = clients; c; c = c->next)
if(c->tags[tsel] && !c->isfloat)
n++;
h = sh - bh;
for(i = 0, c = clients; c; c = c->next) {
+ c->ismax = False;
if(c->tags[tsel]) {
if(c->isfloat) {
higher(c);
return c;
}
+Client *
+getprev(Client *c)
+{
+ for(; c && !c->tags[tsel]; c = c->prev);
+ return c;
+}
+
void
heretag(Arg *arg)
{
replacetag(Arg *arg)
{
int i;
+
if(!sel)
return;
c->tags[tsel] = tags[tsel];
}
+void
+togglemode(Arg *arg)
+{
+ arrange = arrange == dofloat ? dotile : dofloat;
+ arrange(NULL);
+}
+
void
view(Arg *arg)
{