diff --git a/docs/docs.md b/docs/docs.md index 1205f08..17f571c 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -28,133 +28,136 @@ See a list below for a list. ## Arguments -- spmenu -l line - Set line count to stdin -- spmenu -mh 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 -- spmenu -F - Enable fuzzy matching -- spmenu -NF - Disable fuzzy matching -- spmenu -P - Hide characters -- spmenu -Ps symbol - Set the password symbol to symbol -- spmenu -p text - Set spmenu prompt text to text -- spmenu -ip - Indent items to prompt width -- spmenu -nip - Don't indent items to prompt width -- spmenu -a - Enable alpha -- spmenu -na - Disable alpha -- spmenu -tp - Allow the user to type -- spmenu -nt - Don't allow typing, the user must select an option -- spmenu -x x offset - Offset spmenu x position by x offset -- spmenu -y y offset - Offset spmenu y position by y offset -- spmenu -n line - Preselect line in the list of items -- spmenu -z width - Width of the spmenu window -- spmenu -nmt text - Set normal mode text to text -- spmenu -imt text - Set insert mode text to text -- spmenu -bw - Width of the border. 0 will disable the border -- spmenu -so - Sort matches -- spmenu -nso - Don't sort matches -- spmenu -pri priority - Specify a list of items that take priority -- spmenu -s - Use case-sensitive matching -- spmenu -ns - Use case-insensitive matching -- spmenu -nm - Start spmenu in normal mode -- spmenu -im - Start spmenu in insert mode -- spmenu -t - Position spmenu at the top of the screen -- spmenu -b - Position spmenu at the bottom of the screen -- spmenu -c - Position spmenu at the center of the screen -- spmenu -hm - Hide mode indicator -- spmenu -hmc - Hide match count -- spmenu -hla - Hide left arrow -- spmenu -hra - Hide right arrow -- spmenu -hpr - Hide prompt -- spmenu -hc - Hide cursor -- spmenu -hhl - Hide highlight -- spmenu -hi - Hide image -- spmenu -sm - Show mode indicator -- spmenu -smc - Show match count -- spmenu -sla - Show left arrow -- spmenu -sra - Show right arrow -- spmenu -spr - Show prompt -- spmenu -sc - Show cursor -- spmenu -shl - Show highlight -- spmenu -si - Show image -- spmenu -xrdb - Load .Xresources on runtime -- spmenu -nxrdb - Don't load .Xresources on runtime -- spmenu -m monitor - Specify a monitor to run spmenu on -- spmenu -w window id - Embed spmenu inside window id -- spmenu -H hist file - Specify a path to save the history to -- spmenu -ig gaps - Set image gaps to gaps -- spmenu -lp padding - Set the vertical padding -- spmenu -hp padding - Set the horizontal padding -- spmenu -la symbol - Set the left arrow to symbol -- spmenu -ra symbol - Set the right arrow to symbol -- spmenu -is size - Image size -- spmenu -it - Position the image at the top -- spmenu -ib - Position the image at the bottom -- spmenu -ic - Position the image in the center -- spmenu -itc - Position the image in the top center -- spmenu -wm - Spawn spmenu as a window manager controlled client -- spmenu -nwm - Don't spawn spmenu as a window manager controlled client -- spmenu -lcfg - Load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc) -- spmenu -ncfg - Don't load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc) -- spmenu -v - Print spmenu version to stdout +Miscellanious: -- spmenu -fn font - Set the spmenu font to font -- spmenu -nif color - Set the normal item foreground color -- spmenu -nib color - Set the normal item background color -- spmenu -sif color - Set the selected item foreground color -- spmenu -sib color - Set the selected item background color -- spmenu -npf color - Set the normal item (high priority) foreground color -- spmenu -npb color - Set the normal item (high priority) background color -- spmenu -spf color - Set the selected item (high priority) foreground color -- spmenu -spb color - Set the selected item (high priority) background color -- spmenu -pfg color - Set the prompt foreground color -- spmenu -pbg color - Set the prompt background color -- spmenu -ifg color - Set input foreground color -- spmenu -ibg color - Set input background color -- spmenu -mbg color - Set the menu background color -- spmenu -nhf color - Set the normal highlight foreground color -- spmenu -nhb color - Set the normal highlight background color -- spmenu -shf color - Set the selected highlight foreground color -- spmenu -shb color - Set the selected highlight background color -- spmenu -shb color - Set the selected highlight background color -- spmenu -nfg color - Set the foreground color for the match count -- spmenu -nbg color - Set the background color for the match count -- spmenu -mfg color - Set the foreground color for the mode indicator -- spmenu -mbg color - Set the background color for the mode indicator -- spmenu -laf color - Set the left arrow foreground color -- spmenu -raf color - Set the right arrow foreground color -- spmenu -lab color - Set the left arrow background color -- spmenu -rab color - Set the right arrow background color -- spmenu -cc color - Set the caret color -- spmenu -bc color - Set the border color -- spmenu -sgr0 - Set the SGR 0 color -- spmenu -sgr1 - Set the SGR 1 color -- spmenu -sgr2 - Set the SGR 2 color -- spmenu -sgr3 - Set the SGR 3 color -- spmenu -sgr4 - Set the SGR 4 color -- spmenu -sgr5 - Set the SGR 5 color -- spmenu -sgr6 - Set the SGR 6 color -- spmenu -sgr7 - Set the SGR 7 color -- spmenu -sgr8 - Set the SGR 8 color -- spmenu -sgr9 - Set the SGR 9 color -- spmenu -sgr10 - Set the SGR 10 color -- spmenu -sgr11 - Set the SGR 11 color -- spmenu -sgr12 - Set the SGR 12 color -- spmenu -sgr13 - Set the SGR 13 color -- spmenu -sgr14 - Set the SGR 14 color -- spmenu -sgr15 - Set the SGR 15 color +- spmenu -l, --lines line - Set line count to stdin +- spmenu -mh, --lineheight height - Set spmenu line height to height +- spmenu -g, --columns grid - Set the number of grids to grid +- spmenu -gc, --generate-cache - Generate image cache +- spmenu -ngc, --no-generate-cache - Don't generate image cache +- spmenu -rw, --relative-width - Enable relative input width +- spmenu -nrw, --no-relative-width - Disable relative input width +- spmenu -f, --fast - Grabs keyboard before reading stdin +- spmenu -F, --fuzzy - Enable fuzzy matching +- spmenu -NF, --no-fuzzy - Disable fuzzy matching +- spmenu -P, --password - Hide characters +- spmenu -Ps, --password-symbol symbol - Set the password symbol to symbol +- spmenu -p, --prompt text - Set spmenu prompt text to text +- spmenu -ip, --indent - Indent items to prompt width +- spmenu -nip, --no-indent - Don't indent items to prompt width +- spmenu -a, --alpha - Enable alpha +- spmenu -na, --no-alpha - Disable alpha +- spmenu -tp, --allow-typing - Allow the user to type +- spmenu -nt, --no-allow-typing - Don't allow typing, the user must select an option +- spmenu -x, --x-position x offset - Offset spmenu x position by x offset +- spmenu -y, --y-position y offset - Offset spmenu y position by y offset +- spmenu -n, --preselect line - Preselect line in the list of items +- spmenu -z, --width width - Width of the spmenu window +- spmenu -nmt, --normal-mode-text text - Set normal mode text to text +- spmenu -imt, --insert-mode-text text - Set insert mode text to text +- spmenu -bw, --border-width width - Set width of the border to width . 0 will disable the border +- spmenu -so, --sort - Sort matches +- spmenu -nso, --no-sort - Don't sort matches +- spmenu -pri, --priority pri1,pri2,pri3 - Specify a list of items that take priority +- spmenu -s, --case-sensitive - Use case-sensitive matching +- spmenu -ns, --case-insensitive - Use case-insensitive matching +- spmenu -nm, --normal - Start spmenu in normal mode +- spmenu -im, --insert - Start spmenu in insert mode +- spmenu -t, --top - Position spmenu at the top of the screen +- spmenu -b, --bottom - Position spmenu at the bottom of the screen +- spmenu -c, --center - Position spmenu at the center of the screen +- spmenu -hm, --hide-mode - Hide mode indicator +- spmenu -hmc, --hide-match-count - Hide match count +- spmenu -hla, --hide-left-arrow - Hide left arrow +- spmenu -hra, --hide-right-arrow - Hide right arrow +- spmenu -hpr, --hide-prompt - Hide prompt +- spmenu -hc, --hide-cursor - Hide cursor +- spmenu -hhl, --hide-highlighting - Hide highlight +- spmenu -hi, --hide-image - Hide image +- spmenu -sm, --show-mode - Show mode indicator +- spmenu -smc, --show-match-count - Show match count +- spmenu -sla, --show-left-arrow - Show left arrow +- spmenu -sra, --show-right-arrow - Show right arrow +- spmenu -spr, --show-prompt - Show prompt +- spmenu -sc, --show-cursor - Show cursor +- spmenu -shl, --show-highlighting - Show highlight +- spmenu -si, --show-image - Show image +- spmenu -xrdb, --xrdb - Load .Xresources on runtime +- spmenu -nxrdb, --no-xrdb - Don't load .Xresources on runtime +- spmenu -m, --monitor monitor - Specify a monitor to run spmenu on +- spmenu -w, --embed window id - Embed spmenu inside window id +- spmenu -H, --hist-file hist file - Specify a path to save the history to +- spmenu -ig, --image-gaps gaps - Set image gaps to gaps +- spmenu -lp, --vertical-padding padding - Set the vertical padding +- spmenu -hp, --horizontal-padding padding - Set the horizontal padding +- spmenu -la, --left-arrow-symbol symbol - Set the left arrow to symbol +- spmenu -ra, --right-arrow-symbol symbol - Set the right arrow to symbol +- spmenu -is, --image-size size - Image size +- spmenu -it, --image-top - Position the image at the top +- spmenu -ib, --image-bottom - Position the image at the bottom +- spmenu -ic, --image-center - Position the image in the center +- spmenu -itc, --image-topcenter - Position the image in the top center +- spmenu -wm, --managed, --x11-client - Spawn spmenu as a window manager controlled client/window. Useful for testing +- spmenu -nwm, --unmanaged - Don't spawn spmenu as a window manager controlled client/window. Useful for testing +- spmenu -lcfg, --load-config - Load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc) +- spmenu -ncfg, --no-load-config - Don't load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc) +- spmenu -v, --version - Print spmenu version to stdout + +Appearance: + +- spmenu -fn, --font font - Set the spmenu font to font +- spmenu -nif, --normal-item-foreground color - Set the normal item foreground color +- spmenu -nib, --normal-item-background color - Set the normal item background color +- spmenu -sif, --selected-item-foreground color - Set the selected item foreground color +- spmenu -sib, --selected-item-background color - Set the selected item background color +- spmenu -npf, --normal-item-priority-foreground color - Set the normal item (high priority) foreground color +- spmenu -npb, --normal-item-priority-background color - Set the normal item (high priority) background color +- spmenu -spf, --selected-item-priority-foreground color - Set the selected item (high priority) foreground color +- spmenu -spb, --selected-item-priority-background color - Set the selected item (high priority) background color +- spmenu -pfg, --prompt-foreground color - Set the prompt foreground color +- spmenu -pbg, --prompt-background color - Set the prompt background color +- spmenu -ifg, --input-foreground color - Set input foreground color +- spmenu -ibg, --input-background color - Set input background color +- spmenu -mnbg, --menu-background color - Set the menu background color +- spmenu -nhf, --normal-highlight-foreground color - Set the normal highlight foreground color +- spmenu -nhb, --normal-highlight-background color - Set the normal highlight background color +- spmenu -shf, --selected-highlight-foreground color - Set the selected highlight foreground color +- spmenu -shb, --selected-highlight-background color - Set the selected highlight background color +- spmenu -nfg, --number-foreground color - Set the foreground color for the match count +- spmenu -nbg, --number-background color - Set the background color for the match count +- spmenu -mfg, --mode-foreground color - Set the foreground color for the mode indicator +- spmenu -mbg, --mode-background color - Set the background color for the mode indicator +- spmenu -laf, --left-arrow-foreground color - Set the left arrow foreground color +- spmenu -raf, --right-arrow-foreground color - Set the right arrow foreground color +- spmenu -lab, --left-arrow-background color - Set the left arrow background color +- spmenu -rab, --right-arrow-background color - Set the right arrow background color +- spmenu -cc, --caret-foreground color - Set the caret color +- spmenu -bc, --border-background color - Set the border color +- spmenu -sgr0, --sgr0 color - Set the SGR 0 color +- spmenu -sgr1, --sgr1 color - Set the SGR 1 color +- spmenu -sgr2, --sgr2 color - Set the SGR 2 color +- spmenu -sgr3, --sgr3 color - Set the SGR 3 color +- spmenu -sgr4, --sgr4 color - Set the SGR 4 color +- spmenu -sgr5, --sgr5 color - Set the SGR 5 color +- spmenu -sgr6, --sgr6 color - Set the SGR 6 color +- spmenu -sgr7, --sgr7 color - Set the SGR 7 color +- spmenu -sgr8, --sgr8 color - Set the SGR 8 color +- spmenu -sgr9, --sgr9 color - Set the SGR 9 color +- spmenu -sgr10, --sgr10 color - Set the SGR 10 color +- spmenu -sgr11, --sgr11 color - Set the SGR 11 color +- spmenu -sgr12, --sgr12 color - Set the SGR 12 color +- spmenu -sgr13, --sgr13 color - Set the SGR 13 color +- spmenu -sgr14, --sgr14 color - Set the SGR 14 color +- spmenu -sgr15, --sgr15 color - Set the SGR 15 color There are also extra arguments recognized for dmenu compatibility. These are: -- spmenu -i - Use case-insensitive matching -- spmenu -S - Don't sort matches -- spmenu -nb color - Set the normal background color -- spmenu -nf color - Set the normal foreground color -- spmenu -sb color - Set the selected background color -- spmenu -sf color - Set the selected foreground color +- spmenu -S - Don't sort matches +- spmenu -i - Use case-insensitive matching +- spmenu -nb color - Set the normal background color +- spmenu -nf color - Set the normal foreground color +- spmenu -sb color - Set the selected background color +- spmenu -sf color - Set the selected foreground color ## Keybinds diff --git a/libs/argv.c b/libs/argv.c index 5bffa79..c08d73d 100644 --- a/libs/argv.c +++ b/libs/argv.c @@ -9,13 +9,13 @@ readargs(int argc, char *argv[]) // check if we should load the xrdb/config, because it needs to be loaded before arguments are checked (internal -> xresources -> arguments) for (j = 1; j < argc; j++) { - if (!strcmp(argv[j], "-xrdb")) { + if (!strcmp(argv[j], "-xrdb") || (!strcmp(argv[j], "--xrdb"))) { xresources = 1; - } else if (!strcmp(argv[j], "-nxrdb")) { + } else if (!strcmp(argv[j], "-nxrdb") || (!strcmp(argv[j], "--no-xrdb"))) { xresources = 0; - } else if (!strcmp(argv[j], "-lcfg")) { + } else if (!strcmp(argv[j], "-lcfg") || (!strcmp(argv[j], "--load-config"))) { loadconfig = 1; - } else if (!strcmp(argv[j], "-ncfg")) { + } else if (!strcmp(argv[j], "-ncfg") || (!strcmp(argv[j], "--no-load-config"))) { loadconfig = 0; } } @@ -40,13 +40,13 @@ readargs(int argc, char *argv[]) exit(0); } else if (!strcmp(argv[i], "-h") || (!strcmp(argv[i], "--help"))) { // help usage(); - } else if (!strcmp(argv[i], "-it") || (!strcmp(argv[i], "--image_top"))) { // image: top + } else if (!strcmp(argv[i], "-it") || (!strcmp(argv[i], "--image-top"))) { // image: top imageposition = 0; - } else if (!strcmp(argv[i], "-ib") || (!strcmp(argv[i], "--image_bottom"))) { // image: bottom + } else if (!strcmp(argv[i], "-ib") || (!strcmp(argv[i], "--image-bottom"))) { // image: bottom imageposition = 1; - } else if (!strcmp(argv[i], "-ic") || (!strcmp(argv[i], "--image_center"))) { // image: center + } else if (!strcmp(argv[i], "-ic") || (!strcmp(argv[i], "--image-center"))) { // image: center imageposition = 2; - } else if (!strcmp(argv[i], "-itc") || (!strcmp(argv[i], "--image_topcenter"))) { // image: top center + } else if (!strcmp(argv[i], "-itc") || (!strcmp(argv[i], "--image-topcenter"))) { // image: top center imageposition = 3; } else if (!strcmp(argv[i], "-b") || (!strcmp(argv[i], "--bottom"))) { // appears at the bottom of the screen menuposition = 0; @@ -64,10 +64,6 @@ readargs(int argc, char *argv[]) accuratewidth = 1; } else if (!strcmp(argv[i], "-nrw") || (!strcmp(argv[i], "--no-relative-width"))) { // no relative width accuratewidth = 0; - } else if (!strcmp(argv[i], "-xrdb") || (!strcmp(argv[i], "--xrdb"))) { // xresources - xresources = 1; - } else if (!strcmp(argv[i], "-nxrdb") || (!strcmp(argv[i], "--no-xrdb"))) { // no xresources - xresources = 0; } else if (!strcmp(argv[i], "-F") || (!strcmp(argv[i], "--fuzzy"))) { // fuzzy matching fuzzy = 1; } else if (!strcmp(argv[i], "-NF") || (!strcmp(argv[i], "--no-fuzzy"))) { // no fuzzy matching @@ -140,9 +136,13 @@ readargs(int argc, char *argv[]) // any of the arguments we checked first if (strcmp(argv[i-1], "-xrdb") - || strcmp(argv[i-1], "-nxrdb") - || strcmp(argv[i-1], "-lcfg") - || strcmp(argv[i-1], "-ncfg") + || strcmp(argv[i-1], "-nxrdb") + || strcmp(argv[i-1], "--xrdb") + || strcmp(argv[i-1], "--no-xrdb") + || strcmp(argv[i-1], "-lcfg") + || strcmp(argv[i-1], "-ncfg") + || strcmp(argv[i-1], "--load-config") + || strcmp(argv[i-1], "--no-load-config") ) pr = 0; @@ -254,7 +254,7 @@ readargs(int argc, char *argv[]) colors[SchemeItemSelPri][ColFg] = argv[++i]; } else if (!strcmp(argv[i], "-spb") || (!strcmp(argv[i], "--selected-item-priority-background"))) { // selected item priority background color colors[SchemeItemSelPri][ColBg] = argv[++i]; - } else if (!strcmp(argv[i], "-mbg") || (!strcmp(argv[i], "--menu-background"))) { // menu color + } else if (!strcmp(argv[i], "-mnbg") || (!strcmp(argv[i], "--menu-background"))) { // menu color colors[SchemeMenu][ColBg] = argv[++i]; } else if (!strcmp(argv[i], "-pfg") || (!strcmp(argv[i], "--prompt-foreground"))) { // prompt fg color colors[SchemePrompt][ColFg] = argv[++i]; @@ -328,133 +328,132 @@ usage(void) { fputs("spmenu: dynamic menu\n\n" "- Arguments -\n" - "spmenu -l Set line count to stdin\n" - "spmenu -mh Set spmenu line height to \n" - "spmenu -g Set the number of grids to \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" - "spmenu -F Enable fuzzy matching\n" - "spmenu -NF Disable fuzzy matching\n" - "spmenu -P Hide characters\n" - "spmenu -Ps Set the password symbol to \n" - "spmenu -p Set spmenu prompt text to \n" - "spmenu -ip Indent items to prompt width\n" - "spmenu -nip Don't indent items to prompt width\n" - "spmenu -a Enable alpha\n" - "spmenu -na Disable alpha\n" - "spmenu -tp Allow the user to type\n" - "spmenu -nt Don't allow typing, the user must select an option\n" - "spmenu -x Offset spmenu x position by \n" - "spmenu -y Offset spmenu y position by \n" - "spmenu -n Preselect in the list of items\n" - "spmenu -z Width of the spmenu window\n" - "spmenu -nmt Set normal mode text to \n" - "spmenu -imt Set insert mode text to \n" - "spmenu -bw Width of the border. 0 will disable the border\n" - "spmenu -so Sort matches\n" - "spmenu -nso Don't sort matches\n" - "spmenu -pri Specify a list of items that take priority\n" - "spmenu -s Use case-sensitive matching\n" - "spmenu -ns Use case-insensitive matching\n" - "spmenu -nm Start spmenu in normal mode\n" - "spmenu -im Start spmenu in insert mode\n" - "spmenu -t Position spmenu at the top of the screen\n" - "spmenu -b Position spmenu at the bottom of the screen\n" - "spmenu -c Position spmenu at the center of the screen\n" - "spmenu -hm Hide mode indicator\n" - "spmenu -hmc Hide match count\n" - "spmenu -hla Hide left arrow\n" - "spmenu -hra Hide right arrow\n" - "spmenu -hpr Hide prompt\n" - "spmenu -hc Hide cursor\n" - "spmenu -hhl Hide highlight\n" - "spmenu -hi Hide image\n" - "spmenu -sm Show mode indicator\n" - "spmenu -smc Show match count\n" - "spmenu -sla Show left arrow\n" - "spmenu -sra Show right arrow\n" - "spmenu -spr Show prompt\n" - "spmenu -sc Show cursor\n" - "spmenu -shl Show highlight\n" - "spmenu -si Show image\n" - "spmenu -xrdb Load .Xresources on runtime\n" - "spmenu -nxrdb Don't load .Xresources on runtime\n" - "spmenu -m Specify a monitor to run spmenu on\n" - "spmenu -w Embed spmenu inside \n" - "spmenu -H Specify a path to save the history to\n" - "spmenu -ig Set image gaps to \n" - "spmenu -lp Set the vertical padding\n" - "spmenu -hp Set the horizontal padding\n" - "spmenu -la Set the left arrow to \n" - "spmenu -ra Set the right arrow to \n" - "spmenu -is Image size\n" - "spmenu -it Position the image at the top\n" - "spmenu -ib Position the image at the bottom\n" - "spmenu -ic Position the image in the center\n" - "spmenu -itc Position the image in the top center\n" - "spmenu -wm Spawn spmenu as a window manager controlled client/window. Useful for testing\n" - "spmenu -nwm Don't spawn spmenu as a window manager controlled client/window. Useful for testing\n" - "spmenu -lcfg Load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc)\n" - "spmenu -ncfg Don't load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc)\n" - "spmenu -v Print spmenu version to stdout\n" + "spmenu -l, --lines Set line count to stdin\n" + "spmenu -mh, --lineheight Set spmenu line height to \n" + "spmenu -g, --columns Set the number of grids to \n" + "spmenu -gc, --generate-cache Generate image cache\n" + "spmenu -ngc, --no-generate-cache Don't generate image cache\n" + "spmenu -rw, --relative-width Enable relative input width\n" + "spmenu -nrw, --no-relative-width Disable relative input width\n" + "spmenu -f, --fast Grabs keyboard before reading stdin\n" + "spmenu -F, --fuzzy Enable fuzzy matching\n" + "spmenu -NF, --no-fuzzy Disable fuzzy matching\n" + "spmenu -P, --password Hide characters\n" + "spmenu -Ps, --password-symbol Set the password symbol to \n" + "spmenu -p, --prompt Set spmenu prompt text to \n" + "spmenu -ip, --indent Indent items to prompt width\n" + "spmenu -nip, --no-indent Don't indent items to prompt width\n" + "spmenu -a, --alpha Enable alpha\n" + "spmenu -na, --no-alpha Disable alpha\n" + "spmenu -tp, --allow-typing Allow the user to type\n" + "spmenu -nt, --no-allow-typing Don't allow typing, the user must select an option\n" + "spmenu -x, --x-position Offset spmenu x position by \n" + "spmenu -y, --y-position Offset spmenu y position by \n" + "spmenu -n, --preselect Preselect in the list of items\n" + "spmenu -z, --width Width of the spmenu window\n" + "spmenu -nmt, --normal-mode-text Set normal mode text to \n" + "spmenu -imt, --insert-mode-text Set insert mode text to \n" + "spmenu -bw, --border-width Set width of the border to . 0 will disable the border\n" + "spmenu -so, --sort Sort matches\n" + "spmenu -nso, --no-sort Don't sort matches\n" + "spmenu -pri, --priority Specify a list of items that take priority\n" + "spmenu -s, --case-sensitive Use case-sensitive matching\n" + "spmenu -ns, --case-insensitive Use case-insensitive matching\n" + "spmenu -nm, --normal Start spmenu in normal mode\n" + "spmenu -im, --insert Start spmenu in insert mode\n" + "spmenu -t, --top Position spmenu at the top of the screen\n" + "spmenu -b, --bottom Position spmenu at the bottom of the screen\n" + "spmenu -c, --center Position spmenu at the center of the screen\n" + "spmenu -hm, --hide-mode Hide mode indicator\n" + "spmenu -hmc, --hide-match-count Hide match count\n" + "spmenu -hla, --hide-left-arrow Hide left arrow\n" + "spmenu -hra, --hide-right-arrow Hide right arrow\n" + "spmenu -hpr, --hide-prompt Hide prompt\n" + "spmenu -hc, --hide-cursor Hide cursor\n" + "spmenu -hhl, --hide-highlighting Hide highlight\n" + "spmenu -hi, --hide-image Hide image\n" + "spmenu -sm, --show-mode Show mode indicator\n" + "spmenu -smc, --show-match-count Show match count\n" + "spmenu -sla, --show-left-arrow Show left arrow\n" + "spmenu -sra, --show-right-arrow Show right arrow\n" + "spmenu -spr, --show-prompt Show prompt\n" + "spmenu -sc, --show-cursor Show cursor\n" + "spmenu -shl, --show-highlighting Show highlight\n" + "spmenu -si, --show-image Show image\n" + "spmenu -xrdb, --xrdb Load .Xresources on runtime\n" + "spmenu -nxrdb, --no-xrdb Don't load .Xresources on runtime\n" + "spmenu -m, --monitor Specify a monitor to run spmenu on\n" + "spmenu -w, --embed Embed spmenu inside \n" + "spmenu -H, --hist-file Specify a path to save the history to\n" + "spmenu -ig, --image-gaps Set image gaps to \n" + "spmenu -lp, --vertical-padding Set the vertical padding\n" + "spmenu -hp, --horizontal-padding Set the horizontal padding\n" + "spmenu -la, --left-arrow-symbol Set the left arrow to \n" + "spmenu -ra, --right-arrow-symbol Set the right arrow to \n" + "spmenu -is, --image-size Image size\n" + "spmenu -it, --image-top Position the image at the top\n" + "spmenu -ib, --image-bottom Position the image at the bottom\n" + "spmenu -ic, --image-center Position the image in the center\n" + "spmenu -itc, --image-topcenter Position the image in the top center\n" + "spmenu -wm, --managed, --x11-client Spawn spmenu as a window manager controlled client/window. Useful for testing\n" + "spmenu -nwm, --unmanaged Don't spawn spmenu as a window manager controlled client/window. Useful for testing\n" + "spmenu -lcfg, --load-config Load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc)\n" + "spmenu -ncfg, --no-load-config Don't load spmenu configuration (~/.spmenu or ~/.config/spmenu/spmenurc)\n" + "spmenu -v, --version Print spmenu version to stdout\n" "\n", stdout); fputs("- Appearance arguments -\n" - "spmenu -fn Set the spmenu font to \n" - "spmenu -nif Set the normal item foreground color\n" - "spmenu -nib Set the normal item background color\n" - "spmenu -sif Set the selected item foreground color\n" - "spmenu -sib Set the selected item background color\n" - "spmenu -npf Set the normal item (high priority) foreground color\n" - "spmenu -npb Set the normal item (high priority) background color\n" - "spmenu -spf Set the selected item (high priority) foreground color\n" - "spmenu -spb Set the selected item (high priority) background color\n" - "spmenu -pfg Set the prompt foreground color\n" - "spmenu -pbg Set the prompt background color\n" - "spmenu -ifg Set input foreground color\n" - "spmenu -ibg Set input background color\n" - "spmenu -mbg Set the menu background color\n" - "spmenu -nhf Set the normal highlight foreground color\n" - "spmenu -nhb Set the normal highlight background color\n" - "spmenu -shf Set the selected highlight foreground color\n" - "spmenu -shb Set the selected highlight background color\n" - "spmenu -shb Set the selected highlight background color\n" - "spmenu -nfg Set the foreground color for the match count\n" - "spmenu -nbg Set the background color for the match count\n" - "spmenu -mfg Set the foreground color for the mode indicator\n" - "spmenu -mbg Set the background color for the mode indicator\n" - "spmenu -laf Set the left arrow foreground color\n" - "spmenu -raf Set the right arrow foreground color\n" - "spmenu -lab Set the left arrow background color\n" - "spmenu -rab Set the right arrow background color\n" - "spmenu -cc Set the caret color\n" - "spmenu -bc Set the border color\n" - "spmenu -sgr0 Set the SGR 0 color\n" - "spmenu -sgr1 Set the SGR 1 color\n" - "spmenu -sgr2 Set the SGR 2 color\n" - "spmenu -sgr3 Set the SGR 3 color\n" - "spmenu -sgr4 Set the SGR 4 color\n" - "spmenu -sgr5 Set the SGR 5 color\n" - "spmenu -sgr6 Set the SGR 6 color\n" - "spmenu -sgr7 Set the SGR 7 color\n" - "spmenu -sgr8 Set the SGR 8 color\n" - "spmenu -sgr9 Set the SGR 9 color\n" - "spmenu -sgr10 Set the SGR 10 color\n" - "spmenu -sgr11 Set the SGR 11 color\n" - "spmenu -sgr12 Set the SGR 12 color\n" - "spmenu -sgr13 Set the SGR 13 color\n" - "spmenu -sgr14 Set the SGR 14 color\n" - "spmenu -sgr15 Set the SGR 15 color\n" + "spmenu -fn, --font Set the spmenu font to \n" + "spmenu -nif, --normal-item-foreground Set the normal item foreground color\n" + "spmenu -nib, --normal-item-background Set the normal item background color\n" + "spmenu -sif, --selected-item-foreground Set the selected item foreground color\n" + "spmenu -sib, --selected-item-background Set the selected item background color\n" + "spmenu -npf, --normal-item-priority-foreground Set the normal item (high priority) foreground color\n" + "spmenu -npb, --normal-item-priority-background Set the normal item (high priority) background color\n" + "spmenu -spf, --selected-item-priority-foreground Set the selected item (high priority) foreground color\n" + "spmenu -spb, --selected-item-priority-background Set the selected item (high priority) background color\n" + "spmenu -pfg, --prompt-foreground Set the prompt foreground color\n" + "spmenu -pbg, --prompt-background Set the prompt background color\n" + "spmenu -ifg, --input-foreground Set input foreground color\n" + "spmenu -ibg, --input-background Set input background color\n" + "spmenu -mnbg, --menu-background Set the menu background color\n" + "spmenu -nhf, --normal-highlight-foreground Set the normal highlight foreground color\n" + "spmenu -nhb, --normal-highlight-background Set the normal highlight background color\n" + "spmenu -shf, --selected-highlight-foreground Set the selected highlight foreground color\n" + "spmenu -shb, --selected-highlight-background Set the selected highlight background color\n" + "spmenu -nfg, --number-foreground Set the foreground color for the match count\n" + "spmenu -nbg, --number-background Set the background color for the match count\n" + "spmenu -mfg, --mode-foreground Set the foreground color for the mode indicator\n" + "spmenu -mbg, --mode-background Set the background color for the mode indicator\n" + "spmenu -laf, --left-arrow-foreground Set the left arrow foreground color\n" + "spmenu -raf, --right-arrow-foreground Set the right arrow foreground color\n" + "spmenu -lab, --left-arrow-background Set the left arrow background color\n" + "spmenu -rab, --right-arrow-background Set the right arrow background color\n" + "spmenu -cc, --caret-foreground Set the caret color\n" + "spmenu -bc, --border-background Set the border color\n" + "spmenu -sgr0, --sgr0 Set the SGR 0 color\n" + "spmenu -sgr1, --sgr1 Set the SGR 1 color\n" + "spmenu -sgr2, --sgr2 Set the SGR 2 color\n" + "spmenu -sgr3, --sgr3 Set the SGR 3 color\n" + "spmenu -sgr4, --sgr4 Set the SGR 4 color\n" + "spmenu -sgr5, --sgr5 Set the SGR 5 color\n" + "spmenu -sgr6, --sgr6 Set the SGR 6 color\n" + "spmenu -sgr7, --sgr7 Set the SGR 7 color\n" + "spmenu -sgr8, --sgr8 Set the SGR 8 color\n" + "spmenu -sgr9, --sgr9 Set the SGR 9 color\n" + "spmenu -sgr10, --sgr10 Set the SGR 10 color\n" + "spmenu -sgr11, --sgr11 Set the SGR 11 color\n" + "spmenu -sgr12, --sgr12 Set the SGR 12 color\n" + "spmenu -sgr13, --sgr13 Set the SGR 13 color\n" + "spmenu -sgr14, --sgr14 Set the SGR 14 color\n" + "spmenu -sgr15, --sgr15 Set the SGR 15 color\n" "\n", stdout); fputs("- dmenu compatibility -\n" - "spmenu -S Don't sort matches\n" - "spmenu -i Use case-insensitive matching\n" - "spmenu -nb Set the normal background color\n" - "spmenu -nf Set the normal foreground color\n" - "spmenu -sb Set the selected background color\n" - "spmenu -sf Set the selected foreground color\n" + "spmenu -S Don't sort matches\n" + "spmenu -i Use case-insensitive matching\n" + "spmenu -nb Set the normal background color\n" + "spmenu -nf Set the normal foreground color\n" + "spmenu -sb Set the selected background color\n" + "spmenu -sf Set the selected foreground color\n" , stdout); exit(1); } diff --git a/spmenu.1 b/spmenu.1 index 3f00767..d400a40 100644 --- a/spmenu.1 +++ b/spmenu.1 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pandoc 3.0.1 +.\" Automatically generated by Pandoc 3.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. @@ -47,254 +47,286 @@ On top of this, you can specify arguments to change the behavior of spmenu. See a list below for a list. .SS Arguments +.PP +Miscellanious: .IP \[bu] 2 -spmenu -l line - Set line count to stdin +spmenu -l, \[en]lines line - Set line count to stdin .IP \[bu] 2 -spmenu -mh height - Set spmenu line height to height +spmenu -mh, \[en]lineheight height - Set spmenu line height to height .IP \[bu] 2 -spmenu -g grid - Set the number of grids to grid +spmenu -g, \[en]columns grid - Set the number of grids to grid .IP \[bu] 2 -spmenu -gc - Generate image cache +spmenu -gc, \[en]generate-cache - Generate image cache .IP \[bu] 2 -spmenu -ngc - Don\[cq]t generate image cache +spmenu -ngc, \[en]no-generate-cache - Don\[cq]t generate image cache .IP \[bu] 2 -spmenu -rw - Enable relative input width +spmenu -rw, \[en]relative-width - Enable relative input width .IP \[bu] 2 -spmenu -nrw - Disable relative input width +spmenu -nrw, \[en]no-relative-width - Disable relative input width .IP \[bu] 2 -spmenu -f - Grabs keyboard before reading stdin +spmenu -f, \[en]fast - Grabs keyboard before reading stdin .IP \[bu] 2 -spmenu -F - Enable fuzzy matching +spmenu -F, \[en]fuzzy - Enable fuzzy matching .IP \[bu] 2 -spmenu -NF - Disable fuzzy matching +spmenu -NF, \[en]no-fuzzy - Disable fuzzy matching .IP \[bu] 2 -spmenu -P - Hide characters +spmenu -P, \[en]password - Hide characters .IP \[bu] 2 -spmenu -Ps symbol - Set the password symbol to symbol +spmenu -Ps, \[en]password-symbol symbol - Set the password symbol to +symbol .IP \[bu] 2 -spmenu -p text - Set spmenu prompt text to text +spmenu -p, \[en]prompt text - Set spmenu prompt text to text .IP \[bu] 2 -spmenu -ip - Indent items to prompt width +spmenu -ip, \[en]indent - Indent items to prompt width .IP \[bu] 2 -spmenu -nip - Don\[cq]t indent items to prompt width +spmenu -nip, \[en]no-indent - Don\[cq]t indent items to prompt width .IP \[bu] 2 -spmenu -a - Enable alpha +spmenu -a, \[en]alpha - Enable alpha .IP \[bu] 2 -spmenu -na - Disable alpha +spmenu -na, \[en]no-alpha - Disable alpha .IP \[bu] 2 -spmenu -tp - Allow the user to type +spmenu -tp, \[en]allow-typing - Allow the user to type .IP \[bu] 2 -spmenu -nt - Don\[cq]t allow typing, the user must select an option +spmenu -nt, \[en]no-allow-typing - Don\[cq]t allow typing, the user must +select an option .IP \[bu] 2 -spmenu -x x offset - Offset spmenu x position by x offset +spmenu -x, \[en]x-position x offset - Offset spmenu x position by x +offset .IP \[bu] 2 -spmenu -y y offset - Offset spmenu y position by y offset +spmenu -y, \[en]y-position y offset - Offset spmenu y position by y +offset .IP \[bu] 2 -spmenu -n line - Preselect line in the list of items +spmenu -n, \[en]preselect line - Preselect line in the list of items .IP \[bu] 2 -spmenu -z width - Width of the spmenu window +spmenu -z, \[en]width width - Width of the spmenu window .IP \[bu] 2 -spmenu -nmt text - Set normal mode text to text +spmenu -nmt, \[en]normal-mode-text text - Set normal mode text to text .IP \[bu] 2 -spmenu -imt text - Set insert mode text to text +spmenu -imt, \[en]insert-mode-text text - Set insert mode text to text .IP \[bu] 2 -spmenu -bw - Width of the border. +spmenu -bw, \[en]border-width width - Set width of the border to width . 0 will disable the border .IP \[bu] 2 -spmenu -so - Sort matches +spmenu -so, \[en]sort - Sort matches .IP \[bu] 2 -spmenu -nso - Don\[cq]t sort matches +spmenu -nso, \[en]no-sort - Don\[cq]t sort matches .IP \[bu] 2 -spmenu -pri priority - Specify a list of items that take priority +spmenu -pri, \[en]priority pri1,pri2,pri3 - Specify a list of items that +take priority .IP \[bu] 2 -spmenu -s - Use case-sensitive matching +spmenu -s, \[en]case-sensitive - Use case-sensitive matching .IP \[bu] 2 -spmenu -ns - Use case-insensitive matching +spmenu -ns, \[en]case-insensitive - Use case-insensitive matching .IP \[bu] 2 -spmenu -nm - Start spmenu in normal mode +spmenu -nm, \[en]normal - Start spmenu in normal mode .IP \[bu] 2 -spmenu -im - Start spmenu in insert mode +spmenu -im, \[en]insert - Start spmenu in insert mode .IP \[bu] 2 -spmenu -t - Position spmenu at the top of the screen +spmenu -t, \[en]top - Position spmenu at the top of the screen .IP \[bu] 2 -spmenu -b - Position spmenu at the bottom of the screen +spmenu -b, \[en]bottom - Position spmenu at the bottom of the screen .IP \[bu] 2 -spmenu -c - Position spmenu at the center of the screen +spmenu -c, \[en]center - Position spmenu at the center of the screen .IP \[bu] 2 -spmenu -hm - Hide mode indicator +spmenu -hm, \[en]hide-mode - Hide mode indicator .IP \[bu] 2 -spmenu -hmc - Hide match count +spmenu -hmc, \[en]hide-match-count - Hide match count .IP \[bu] 2 -spmenu -hla - Hide left arrow +spmenu -hla, \[en]hide-left-arrow - Hide left arrow .IP \[bu] 2 -spmenu -hra - Hide right arrow +spmenu -hra, \[en]hide-right-arrow - Hide right arrow .IP \[bu] 2 -spmenu -hpr - Hide prompt +spmenu -hpr, \[en]hide-prompt - Hide prompt .IP \[bu] 2 -spmenu -hc - Hide cursor +spmenu -hc, \[en]hide-cursor - Hide cursor .IP \[bu] 2 -spmenu -hhl - Hide highlight +spmenu -hhl, \[en]hide-highlighting - Hide highlight .IP \[bu] 2 -spmenu -hi - Hide image +spmenu -hi, \[en]hide-image - Hide image .IP \[bu] 2 -spmenu -sm - Show mode indicator +spmenu -sm, \[en]show-mode - Show mode indicator .IP \[bu] 2 -spmenu -smc - Show match count +spmenu -smc, \[en]show-match-count - Show match count .IP \[bu] 2 -spmenu -sla - Show left arrow +spmenu -sla, \[en]show-left-arrow - Show left arrow .IP \[bu] 2 -spmenu -sra - Show right arrow +spmenu -sra, \[en]show-right-arrow - Show right arrow .IP \[bu] 2 -spmenu -spr - Show prompt +spmenu -spr, \[en]show-prompt - Show prompt .IP \[bu] 2 -spmenu -sc - Show cursor +spmenu -sc, \[en]show-cursor - Show cursor .IP \[bu] 2 -spmenu -shl - Show highlight +spmenu -shl, \[en]show-highlighting - Show highlight .IP \[bu] 2 -spmenu -si - Show image +spmenu -si, \[en]show-image - Show image .IP \[bu] 2 -spmenu -xrdb - Load .Xresources on runtime +spmenu -xrdb, \[en]xrdb - Load .Xresources on runtime .IP \[bu] 2 -spmenu -nxrdb - Don\[cq]t load .Xresources on runtime +spmenu -nxrdb, \[en]no-xrdb - Don\[cq]t load .Xresources on runtime .IP \[bu] 2 -spmenu -m monitor - Specify a monitor to run spmenu on +spmenu -m, \[en]monitor monitor - Specify a monitor to run spmenu on .IP \[bu] 2 -spmenu -w window id - Embed spmenu inside window id +spmenu -w, \[en]embed window id - Embed spmenu inside window id .IP \[bu] 2 -spmenu -H hist file - Specify a path to save the history to +spmenu -H, \[en]hist-file hist file - Specify a path to save the history +to .IP \[bu] 2 -spmenu -ig gaps - Set image gaps to gaps +spmenu -ig, \[en]image-gaps gaps - Set image gaps to gaps .IP \[bu] 2 -spmenu -lp padding - Set the vertical padding +spmenu -lp, \[en]vertical-padding padding - Set the vertical padding .IP \[bu] 2 -spmenu -hp padding - Set the horizontal padding +spmenu -hp, \[en]horizontal-padding padding - Set the horizontal padding .IP \[bu] 2 -spmenu -la symbol - Set the left arrow to symbol +spmenu -la, \[en]left-arrow-symbol symbol - Set the left arrow to symbol .IP \[bu] 2 -spmenu -ra symbol - Set the right arrow to symbol +spmenu -ra, \[en]right-arrow-symbol symbol - Set the right arrow to +symbol .IP \[bu] 2 -spmenu -is size - Image size +spmenu -is, \[en]image-size size - Image size .IP \[bu] 2 -spmenu -it - Position the image at the top +spmenu -it, \[en]image-top - Position the image at the top .IP \[bu] 2 -spmenu -ib - Position the image at the bottom +spmenu -ib, \[en]image-bottom - Position the image at the bottom .IP \[bu] 2 -spmenu -ic - Position the image in the center +spmenu -ic, \[en]image-center - Position the image in the center .IP \[bu] 2 -spmenu -itc - Position the image in the top center +spmenu -itc, \[en]image-topcenter - Position the image in the top center .IP \[bu] 2 -spmenu -wm - Spawn spmenu as a window manager controlled client +spmenu -wm, \[en]managed, \[en]x11-client - Spawn spmenu as a window +manager controlled client/window. +Useful for testing .IP \[bu] 2 -spmenu -nwm - Don\[cq]t spawn spmenu as a window manager controlled -client +spmenu -nwm, \[en]unmanaged - Don\[cq]t spawn spmenu as a window manager +controlled client/window. +Useful for testing .IP \[bu] 2 -spmenu -lcfg - Load spmenu configuration (\[ti]/.spmenu or -\[ti]/.config/spmenu/spmenurc) +spmenu -lcfg, \[en]load-config - Load spmenu configuration +(\[ti]/.spmenu or \[ti]/.config/spmenu/spmenurc) .IP \[bu] 2 -spmenu -ncfg - Don\[cq]t load spmenu configuration (\[ti]/.spmenu or -\[ti]/.config/spmenu/spmenurc) +spmenu -ncfg, \[en]no-load-config - Don\[cq]t load spmenu configuration +(\[ti]/.spmenu or \[ti]/.config/spmenu/spmenurc) .IP \[bu] 2 -spmenu -v - Print spmenu version to stdout +spmenu -v, \[en]version - Print spmenu version to stdout +.PP +Appearance: .IP \[bu] 2 -spmenu -fn font - Set the spmenu font to font +spmenu -fn, \[en]font font - Set the spmenu font to font .IP \[bu] 2 -spmenu -nif color - Set the normal item foreground color +spmenu -nif, \[en]normal-item-foreground color - Set the normal item +foreground color .IP \[bu] 2 -spmenu -nib color - Set the normal item background color +spmenu -nib, \[en]normal-item-background color - Set the normal item +background color .IP \[bu] 2 -spmenu -sif color - Set the selected item foreground color +spmenu -sif, \[en]selected-item-foreground color - Set the selected item +foreground color .IP \[bu] 2 -spmenu -sib color - Set the selected item background color +spmenu -sib, \[en]selected-item-background color - Set the selected item +background color .IP \[bu] 2 -spmenu -npf color - Set the normal item (high priority) foreground color +spmenu -npf, \[en]normal-item-priority-foreground color - Set the normal +item (high priority) foreground color .IP \[bu] 2 -spmenu -npb color - Set the normal item (high priority) background color +spmenu -npb, \[en]normal-item-priority-background color - Set the normal +item (high priority) background color .IP \[bu] 2 -spmenu -spf color - Set the selected item (high priority) foreground +spmenu -spf, \[en]selected-item-priority-foreground color - Set the +selected item (high priority) foreground color +.IP \[bu] 2 +spmenu -spb, \[en]selected-item-priority-background color - Set the +selected item (high priority) background color +.IP \[bu] 2 +spmenu -pfg, \[en]prompt-foreground color - Set the prompt foreground color .IP \[bu] 2 -spmenu -spb color - Set the selected item (high priority) background +spmenu -pbg, \[en]prompt-background color - Set the prompt background color .IP \[bu] 2 -spmenu -pfg color - Set the prompt foreground color +spmenu -ifg, \[en]input-foreground color - Set input foreground color .IP \[bu] 2 -spmenu -pbg color - Set the prompt background color +spmenu -ibg, \[en]input-background color - Set input background color .IP \[bu] 2 -spmenu -ifg color - Set input foreground color +spmenu -mnbg, \[en]menu-background color - Set the menu background color .IP \[bu] 2 -spmenu -ibg color - Set input background color +spmenu -nhf, \[en]normal-highlight-foreground color - Set the normal +highlight foreground color .IP \[bu] 2 -spmenu -mbg color - Set the menu background color +spmenu -nhb, \[en]normal-highlight-background color - Set the normal +highlight background color .IP \[bu] 2 -spmenu -nhf color - Set the normal highlight foreground color +spmenu -shf, \[en]selected-highlight-foreground color - Set the selected +highlight foreground color .IP \[bu] 2 -spmenu -nhb color - Set the normal highlight background color +spmenu -shb, \[en]selected-highlight-background color - Set the selected +highlight background color .IP \[bu] 2 -spmenu -shf color - Set the selected highlight foreground color +spmenu -nfg, \[en]number-foreground color - Set the foreground color for +the match count .IP \[bu] 2 -spmenu -shb color - Set the selected highlight background color +spmenu -nbg, \[en]number-background color - Set the background color for +the match count .IP \[bu] 2 -spmenu -shb color - Set the selected highlight background color +spmenu -mfg, \[en]mode-foreground color - Set the foreground color for +the mode indicator .IP \[bu] 2 -spmenu -nfg color - Set the foreground color for the match count +spmenu -mbg, \[en]mode-background color - Set the background color for +the mode indicator .IP \[bu] 2 -spmenu -nbg color - Set the background color for the match count +spmenu -laf, \[en]left-arrow-foreground color - Set the left arrow +foreground color .IP \[bu] 2 -spmenu -mfg color - Set the foreground color for the mode indicator +spmenu -raf, \[en]right-arrow-foreground color - Set the right arrow +foreground color .IP \[bu] 2 -spmenu -mbg color - Set the background color for the mode indicator +spmenu -lab, \[en]left-arrow-background color - Set the left arrow +background color .IP \[bu] 2 -spmenu -laf color - Set the left arrow foreground color +spmenu -rab, \[en]right-arrow-background color - Set the right arrow +background color .IP \[bu] 2 -spmenu -raf color - Set the right arrow foreground color +spmenu -cc, \[en]caret-foreground color - Set the caret color .IP \[bu] 2 -spmenu -lab color - Set the left arrow background color +spmenu -bc, \[en]border-background color - Set the border color .IP \[bu] 2 -spmenu -rab color - Set the right arrow background color +spmenu -sgr0, \[en]sgr0 color - Set the SGR 0 color .IP \[bu] 2 -spmenu -cc color - Set the caret color +spmenu -sgr1, \[en]sgr1 color - Set the SGR 1 color .IP \[bu] 2 -spmenu -bc color - Set the border color +spmenu -sgr2, \[en]sgr2 color - Set the SGR 2 color .IP \[bu] 2 -spmenu -sgr0 - Set the SGR 0 color +spmenu -sgr3, \[en]sgr3 color - Set the SGR 3 color .IP \[bu] 2 -spmenu -sgr1 - Set the SGR 1 color +spmenu -sgr4, \[en]sgr4 color - Set the SGR 4 color .IP \[bu] 2 -spmenu -sgr2 - Set the SGR 2 color +spmenu -sgr5, \[en]sgr5 color - Set the SGR 5 color .IP \[bu] 2 -spmenu -sgr3 - Set the SGR 3 color +spmenu -sgr6, \[en]sgr6 color - Set the SGR 6 color .IP \[bu] 2 -spmenu -sgr4 - Set the SGR 4 color +spmenu -sgr7, \[en]sgr7 color - Set the SGR 7 color .IP \[bu] 2 -spmenu -sgr5 - Set the SGR 5 color +spmenu -sgr8, \[en]sgr8 color - Set the SGR 8 color .IP \[bu] 2 -spmenu -sgr6 - Set the SGR 6 color +spmenu -sgr9, \[en]sgr9 color - Set the SGR 9 color .IP \[bu] 2 -spmenu -sgr7 - Set the SGR 7 color +spmenu -sgr10, \[en]sgr10 color - Set the SGR 10 color .IP \[bu] 2 -spmenu -sgr8 - Set the SGR 8 color +spmenu -sgr11, \[en]sgr11 color - Set the SGR 11 color .IP \[bu] 2 -spmenu -sgr9 - Set the SGR 9 color +spmenu -sgr12, \[en]sgr12 color - Set the SGR 12 color .IP \[bu] 2 -spmenu -sgr10 - Set the SGR 10 color +spmenu -sgr13, \[en]sgr13 color - Set the SGR 13 color .IP \[bu] 2 -spmenu -sgr11 - Set the SGR 11 color +spmenu -sgr14, \[en]sgr14 color - Set the SGR 14 color .IP \[bu] 2 -spmenu -sgr12 - Set the SGR 12 color -.IP \[bu] 2 -spmenu -sgr13 - Set the SGR 13 color -.IP \[bu] 2 -spmenu -sgr14 - Set the SGR 14 color -.IP \[bu] 2 -spmenu -sgr15 - Set the SGR 15 color +spmenu -sgr15, \[en]sgr15 color - Set the SGR 15 color .PP There are also extra arguments recognized for dmenu compatibility. These are: .IP \[bu] 2 -spmenu -i - Use case-insensitive matching -.IP \[bu] 2 spmenu -S - Don\[cq]t sort matches .IP \[bu] 2 +spmenu -i - Use case-insensitive matching +.IP \[bu] 2 spmenu -nb color - Set the normal background color .IP \[bu] 2 spmenu -nf color - Set the normal foreground color