spmenu/options.h
2023-04-07 17:58:42 +02:00

178 lines
10 KiB
C

/* spmenu - fancy dynamic menu
*
* Below is a configuration file which is technically C source code.
* See the included LICENSE file for license details.
*/
/* spmenu options */
static char *class = "spmenu"; /* Class for spmenu */
static int fast = 0; /* Grab keyboard first */
static int xresources = 1; /* Enable .Xresources support */
static int globalcolors = 1; /* Recognize global colors (such as colors generated by Pywal) */
static int loadconfig = 1; /* Load configuration (~/.spmenurc or ~/.config/spmenu/spmenurc and ~/.config/spmenu/spmenu.conf) on runtime */
static int mon = -1; /* Monitor to run spmenu on */
/* Window options */
static int alpha = 1; /* Enable alpha */
static int menuposition = 1; /* Position of the menu (0: Bottom, 1: Top, 2: Center */
static int menupaddingv = 0; /* Vertical padding of bar (in pixels) */
static int menupaddingh = 0; /* Horizontal padding of bar (in pixels) */
static int menuwidth = 0; /* spmenu width when setting X/Y position */
static int minwidth = 1000; /* Minimum width when centered */
static int xpos = 0; /* X position to offset spmenu */
static int ypos = 0; /* Y position to offset spmenu */
static int managed = 0; /* Let your window manager manage spmenu? */
/* Window properties */
static int dockproperty = 1; /* Set _NET_WM_WINDOW_TYPE_DOCK */
/* Image options */
static int imagewidth = 200; /* Default image width */
static int imageheight = 200; /* Default image height */
static int imagegaps = 0; /* Image gaps */
static int imageposition = 0; /* Image position (0: Top, 1: Bottom, 2: Center, 3: Top center) */
static int generatecache = 1; /* Generate image cache by default */
static int maxcache = 512; /* Max image size to cache */
/* Mode options */
static int mode = 0; /* Mode to start speedwm in (0: Normal mode, 1: Insert mode) */
static char *normtext = "Normal"; /* Text to display for normal mode */
static char *instext = "Insert"; /* Text to display for insert mode */
/* Window border options */
static int borderwidth = 0; /* Width of the border */
/* Font options */
static char font[] = "Noto Sans Mono 8"; /* Font to draw text and Pango markup with. */
static int textpadding = 0; /* Text padding (lrpad) */
/* Text options */
static char *leftarrow = "<"; /* Left arrow, used to indicate you can move to the left */
static char *rightarrow = ">"; /* Right arrow, used to indicate you can move to the right */
static char *password = "*"; /* Password character, when the -P argument is active this will replace all characters typed */
static char *prompt = NULL; /* Default prompt */
static char *input = NULL; /* Default input text */
/* Match options */
static int type = 1; /* Allow typing into spmenu or only allow keybinds. */
static int passwd = 0; /* Replace input with another character and don't read stdin */
static int sortmatches = 1; /* Sort matches (0/1) */
static int casesensitive = 0; /* Case-sensitive by default? (0/1) */
static int preselected = 0; /* Which line should spmenu preselect? */
static int accuratewidth = 1; /* Enable accurate width. May have a performance hit if you are matching a lot of items at once */
static int fuzzy = 1; /* Whether or not to enable fuzzy matching by default */
/* Line options */
static int lineheight = 1; /* Line height (0: Calculate automatically) */
static int lines = 0; /* Default number of lines */
static int columns = 10; /* Default number of columns */
/* History options */
static int maxhist = 64; /* Max number of history entries */
static int histdup = 0; /* If 1, record repeated histories */
/* Prompt options */
static int indentitems = 1; /* Indent items to prompt width? (0/1) */
/* Hide options */
static int hideinput = 0; /* Hide input (0/1) */
static int hidelarrow = 0; /* Hide left arrow (0/1) */
static int hiderarrow = 0; /* Hide right arrow (0/1) */
static int hideitem = 0; /* Hide item (0/1) */
static int hideprompt = 0; /* Hide prompt (0/1) */
static int hidepowerline = 0; /* Hide powerline (0/1) */
static int hidecursor = 0; /* Hide cursor (0/1) */
static int hidehighlight = 0; /* Hide highlight (0/1) */
static int hidematchcount = 0; /* Hide match count (0/1) */
static int hidemode = 0; /* Hide mode (0/1) */
static int hideimage = 0; /* Hide image (0/1) */
/* Color options
*
* Item colors */
static char col_itemnormfg[] = "#bbbbbb"; /* Normal foreground item color */
static char col_itemnormbg[] = "#222222"; /* Normal background item color */
static char col_itemselfg[] = "#eeeeee"; /* Selected foreground item color */
static char col_itemselbg[] = "#35638A"; /* Selected background item color */
static char col_itemnormprifg[] = "#bbbbbb"; /* Normal foreground item (high priority) color */
static char col_itemnormpribg[] = "#222222"; /* Normal background item (high priority) color */
static char col_itemselprifg[] = "#eeeeee"; /* Selected foreground item (high priority) color */
static char col_itemselpribg[] = "#35638A"; /* Selected background item (high priority) color */
/* Input colors */
static char col_inputbg[] = "#222222"; /* Input field background color */
static char col_inputfg[] = "#eeeeee"; /* Input field foreground color */
/* Menu colors */
static char col_menubgcolor[] = "#222222"; /* Menu background color */
/* Prompt colors */
static char col_promptfg[] = "#eeeeee"; /* Prompt foreground color */
static char col_promptbg[] = "#35526b"; /* Prompt background color */
/* Arrow colors */
static char col_larrowfg[] = "#bbbbbb"; /* Left arrow color */
static char col_rarrowfg[] = "#bbbbbb"; /* Right arrow color */
static char col_larrowbg[] = "#222222"; /* Left arrow color */
static char col_rarrowbg[] = "#222222"; /* Right arrow color */
/* Normal highlight colors */
static char col_normhlfgcolor[] = "#ffffff"; /* Text highlight color for unselected */
static char col_normhlbgcolor[] = "#000000"; /* Background highlight color for unselected */
/* Selected highlight colors */
static char col_selhlfgcolor[] = "#ffffff"; /* Text highlight color for selected */
static char col_selhlbgcolor[] = "#000000"; /* Background highlight color for selected */
/* Match count colors */
static char col_numfgcolor[] = "#ffffff"; /* Match count text color */
static char col_numbgcolor[] = "#2d3856"; /* Match count background color */
/* Border color */
static char col_bordercolor[] = "#35638A"; /* Border color */
/* Caret colors */
static char col_caretfgcolor[] = "#ffffff"; /* Caret color */
/* Mode colors */
static char col_modefgcolor[] = "#ffffff"; /* Mode text color */
static char col_modebgcolor[] = "#35638A"; /* Mode background color */
/* SGR colors */
static char col_sgrcolor0[] = "#000000"; /* SGR color #0 */
static char col_sgrcolor1[] = "#7f0000"; /* SGR color #1 */
static char col_sgrcolor2[] = "#007f00"; /* SGR color #2 */
static char col_sgrcolor3[] = "#7f7f00"; /* SGR color #3 */
static char col_sgrcolor4[] = "#00007f"; /* SGR color #4 */
static char col_sgrcolor5[] = "#7f007f"; /* SGR color #5 */
static char col_sgrcolor6[] = "#007f7f"; /* SGR color #6 */
static char col_sgrcolor7[] = "#cccccc"; /* SGR color #7 */
static char col_sgrcolor8[] = "#333333"; /* SGR color #8 */
static char col_sgrcolor9[] = "#ff0000"; /* SGR color #9 */
static char col_sgrcolor10[] = "#00ff00"; /* SGR color #10 */
static char col_sgrcolor11[] = "#ffff00"; /* SGR color #11 */
static char col_sgrcolor12[] = "#0000ff"; /* SGR color #12 */
static char col_sgrcolor13[] = "#ff00ff"; /* SGR color #13 */
static char col_sgrcolor14[] = "#00ffff"; /* SGR color #14 */
static char col_sgrcolor15[] = "#ffffff"; /* SGR color #15 */
/* Pango options */
static int pango_item = 1; /* Enable support for pango markup for the items */
static int pango_highlight = 1; /* Enable support for pango markup for the highlighting */
static int pango_prompt = 1; /* Enable support for pango markup for the prompt */
static int pango_input = 1; /* Enable support for pango markup for user input */
static int pango_leftarrow = 0; /* Enable support for pango markup for the left arrow */
static int pango_rightarrow = 0; /* Enable support for pango markup for the right arrow */
static int pango_numbers = 0; /* Enable support for pango markup for the match count */
static int pango_mode = 0; /* Enable support for pango markup for the mode indicator */
static int pango_password = 0; /* Enable support for pango markup for the password text */
/* Alpha options */
#define fgalpha opaque /* Foreground alpha */
#define bgalpha 200 /* Background alpha */
#define borderalpha opaque /* Border alpha */
/* Misc */
static int coloritems = 1; /* Color items or not */
static char *worddelimiters = " "; /* Word delimiters used for keybinds that change words, " " is default. */