forked from speedie/spmenu
Add -ngc argument
This commit is contained in:
parent
ce214e0e1a
commit
563806f2d1
|
@ -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 -h height - Set spmenu line height to height
|
||||||
- spmenu -g grid - Set the number of grids to grid
|
- spmenu -g grid - Set the number of grids to grid
|
||||||
- spmenu -gc - Generate image cache
|
- spmenu -gc - Generate image cache
|
||||||
|
- spmenu -ngc - Don't generate image cache
|
||||||
- spmenu -rw - Enable relative input width
|
- spmenu -rw - Enable relative input width
|
||||||
- spmenu -nrw - Disable relative input width
|
- spmenu -nrw - Disable relative input width
|
||||||
- spmenu -f - Grabs keyboard before reading stdin
|
- spmenu -f - Grabs keyboard before reading stdin
|
||||||
|
|
|
@ -73,6 +73,8 @@ readargs(int argc, char *argv[])
|
||||||
fstrstr = cistrstr;
|
fstrstr = cistrstr;
|
||||||
} else if (!strcmp(argv[i], "-gc")) { /* generate image cache */
|
} else if (!strcmp(argv[i], "-gc")) { /* generate image cache */
|
||||||
generatecache = 1;
|
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 */
|
} else if (!strcmp(argv[i], "-wm")) { /* display as managed wm window */
|
||||||
managed = 1;
|
managed = 1;
|
||||||
} else if (!strcmp(argv[i], "-na")) { /* disable alpha */
|
} 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 -h <height> Set spmenu line height to <height>\n"
|
||||||
"spmenu -g <grid> Set the number of grids to <grid>\n"
|
"spmenu -g <grid> Set the number of grids to <grid>\n"
|
||||||
"spmenu -gc Generate image cache\n"
|
"spmenu -gc Generate image cache\n"
|
||||||
|
"spmenu -ngc Don't generate image cache\n"
|
||||||
"spmenu -rw Enable relative input width\n"
|
"spmenu -rw Enable relative input width\n"
|
||||||
"spmenu -nrw Disable relative input width\n"
|
"spmenu -nrw Disable relative input width\n"
|
||||||
"spmenu -f Grabs keyboard before reading stdin\n"
|
"spmenu -f Grabs keyboard before reading stdin\n"
|
||||||
|
|
2
spmenu.1
2
spmenu.1
|
@ -53,6 +53,8 @@ spmenu -g grid - Set the number of grids to grid
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
spmenu -gc - Generate image cache
|
spmenu -gc - Generate image cache
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
|
spmenu -ngc - Don\[cq]t generate image cache
|
||||||
|
.IP \[bu] 2
|
||||||
spmenu -rw - Enable relative input width
|
spmenu -rw - Enable relative input width
|
||||||
.IP \[bu] 2
|
.IP \[bu] 2
|
||||||
spmenu -nrw - Disable relative input width
|
spmenu -nrw - Disable relative input width
|
||||||
|
|
Loading…
Reference in a new issue