From 72d0d47817e2aa770305c69bb28fcc0ead06a49e Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 17 May 2022 21:54:14 -0500 Subject: [PATCH] colors at launch patch --- x.c | 7 +++++++ 1 file changed, 7 insertions(+) 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;