When the first char is '^' is handled as a toggable.

        { MODKEY,                       XK_w,           clientspertag,  "^2" }, 
\


void clientspertag(const char *arg) {
       if (arg[0]=='^') {
               if (!cpt) cpt = atoi(arg+1);
               else cpt = 0;
       } else cpt = atoi(arg);
       lt->arrange();
}


  --pancake

Reply via email to