Add -ngc argument

This commit is contained in:
speedie 2023-03-06 20:06:00 +01:00
parent ce214e0e1a
commit 563806f2d1
3 changed files with 6 additions and 0 deletions

View file

@ -21,6 +21,7 @@ On top of this, you can specify arguments to change the behavior of spmenu. See
- spmenu -h height - Set spmenu line height to height
- spmenu -g grid - Set the number of grids to grid
- spmenu -gc - Generate image cache
- spmenu -ngc - Don't generate image cache
- spmenu -rw - Enable relative input width
- spmenu -nrw - Disable relative input width
- spmenu -f - Grabs keyboard before reading stdin

View file

@ -73,6 +73,8 @@ readargs(int argc, char *argv[])
fstrstr = cistrstr;
} else if (!strcmp(argv[i], "-gc")) { /* generate image cache */
generatecache = 1;
} else if (!strcmp(argv[i], "-ngc")) { /* don't generate image cache */
generatecache = 0;
} else if (!strcmp(argv[i], "-wm")) { /* display as managed wm window */
managed = 1;
} else if (!strcmp(argv[i], "-na")) { /* disable alpha */
@ -281,6 +283,7 @@ usage(void)
"spmenu -h <height> Set spmenu line height to <height>\n"
"spmenu -g <grid> Set the number of grids to <grid>\n"
"spmenu -gc Generate image cache\n"
"spmenu -ngc Don't generate image cache\n"
"spmenu -rw Enable relative input width\n"
"spmenu -nrw Disable relative input width\n"
"spmenu -f Grabs keyboard before reading stdin\n"

View file

@ -53,6 +53,8 @@ spmenu -g grid - Set the number of grids to grid
.IP \[bu] 2
spmenu -gc - Generate image cache
.IP \[bu] 2
spmenu -ngc - Don\[cq]t generate image cache
.IP \[bu] 2
spmenu -rw - Enable relative input width
.IP \[bu] 2
spmenu -nrw - Disable relative input width