diff --git a/x.c b/x.c index 2a3bd38..afa06be 100644 --- a/x.c +++ b/x.c @@ -2027,6 +2027,8 @@ usage(void) int main(int argc, char *argv[]) { + int i; + char *colval; xw.l = xw.t = 0; xw.isfixed = False; xsetcursor(cursorshape); @@ -2071,6 +2073,11 @@ main(int argc, char *argv[]) case 'v': die("%s " VERSION "\n", argv0); break; + case 'C': + colval = strtok(EARGF(usage()), "@"); + i = atoi(strtok(NULL, "@")); + colorname[i] = colval; + break; default: usage(); } ARGEND;