/* spmenu * Below is a configuration file which is technically C source code. * See the 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 loadconfig = 1; /* Load configuration (~/.spmenurc or ~/.config/spmenu/spmenurc) 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 minwidth = 500; /* Minimum width */ static int managed = 0; /* Let your window manager manage spmenu? */ /* Image options */ static int imagewidth = 86; /* Default image width */ static int imageheight = 86; /* 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 */ /* 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 = 2; /* Width of the border */ /* Font options */ static char font[] = "Noto Sans Mono 8"; /* Font to draw text and Pango markup with. */ /* Symbol 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 */ /* Match options */ static int type = 1; /* Allow typing into spmenu or only allow keybinds. */ 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 = 5; /* Line height (0: Calculate automatically) */ static int lines = 0; /* Default number of lines */ static int columns = 10; /* Default number of columns */ /* History options */ static unsigned int maxhist = 64; /* Max number of history entries */ static int histnodup = 1; /* If 0, record repeated histories */ /* Prompt options */ static int indentitems = 1; /* Indent items to prompt width? (0/1) */ static char *prompt = NULL; /* Default prompt, set to NULL (nothing) */ /* Hide options */ static int hidematchcount = 0; /* Hide match count (0/1) */ static int hidemode = 0; /* Hide mode (0/1) */ static int hidelarrow = 0; /* Hide left arrow (0/1) */ static int hiderarrow = 0; /* Hide right arrow (0/1) */ static int hideprompt = 0; /* Hide prompt (0/1) */ static int hidecursor = 0; /* Hide cursor (0/1) */ static int hidehighlight = 0; /* Hide highlight (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 char worddelimiters[] = " "; /* Word delimiters, " " is default. */