dmenu

Kris's build of dmenu
git clone git clone https://git.krisyotam.com/krisyotam/dmenu.git
Log | Files | Refs | README | LICENSE

patches.h (4205B)


      1 /*
      2  * This file contains patch control flags.
      3  *
      4  * Kris Yotam's dmenu build - patches enabled:
      5  * - alpha (transparency)
      6  * - border (visible border when centered)
      7  * - caseinsensitive (case-insensitive by default)
      8  * - center (centered on screen)
      9  * - ctrl_v_to_paste (Ctrl+V paste support)
     10  * - fuzzymatch (fuzzy matching)
     11  * - highlight (highlight matched chars)
     12  * - line_height (configurable line height)
     13  * - mouse_support (click to select)
     14  * - numbers (show match count)
     15  * - password (hide input with -P)
     16  * - rejectnomatch (reject non-matching input)
     17  * - xresources (pywal compatible)
     18  */
     19 
     20 /* Patches */
     21 
     22 /* The alpha patch adds transparency for the dmenu window. */
     23 #define ALPHA_PATCH 1
     24 
     25 /* Adds padding for dmenu similar to dwm barpadding. */
     26 #define BARPADDING_PATCH 0
     27 
     28 /* Right-To-Left language support (requires fribidi). */
     29 #define BIDI_PATCH 0
     30 
     31 /* Adds a border around the dmenu window. */
     32 #define BORDER_PATCH 1
     33 
     34 /* Colored caret option via SchemeCaret. */
     35 #define CARET_SCHEME_PATCH 0
     36 
     37 /* Configurable caret width. */
     38 #define CARET_WIDTH_PATCH 0
     39 
     40 /* Case-insensitive by default. */
     41 #define CASEINSENSITIVE_PATCH 0
     42 
     43 /* Centers dmenu in the middle of the screen. */
     44 #define CENTER_PATCH 1
     45 
     46 /* Ctrl+v to paste support. */
     47 #define CTRL_V_TO_PASTE_PATCH 1
     48 
     49 /* Dynamically changes dmenu window size based on items. */
     50 #define DYNAMIC_HEIGHT_PATCH 0
     51 
     52 /* Dynamic options based on input. */
     53 #define DYNAMIC_OPTIONS_PATCH 0
     54 
     55 /* Emoji highlight with colored background. */
     56 #define EMOJI_HIGHLIGHT_PATCH 0
     57 
     58 /* Fuzzy matching support. */
     59 #define FUZZYMATCH_PATCH 1
     60 
     61 /* Fzf-like functionality. */
     62 #define FZFEXPECT_PATCH 0
     63 
     64 /* Grid layout for entries. */
     65 #define GRID_PATCH 0
     66 
     67 /* Grid navigation with arrows. */
     68 #define GRIDNAV_PATCH 0
     69 
     70 /* Highlight matched characters. */
     71 #define HIGHLIGHT_PATCH 1
     72 
     73 /* Sort results by priority. */
     74 #define HIGHPRIORITY_PATCH 0
     75 
     76 /* Print current text on each keypress. */
     77 #define INCREMENTAL_PATCH 0
     78 
     79 /* Preselected text option. */
     80 #define INITIALTEXT_PATCH 0
     81 
     82 /* Input method support (fcitx, ibus). */
     83 #define INPUTMETHOD_PATCH 0
     84 
     85 /* Auto-select if only one match. */
     86 #define INSTANT_PATCH 0
     87 
     88 /* Minimum line height option. */
     89 #define LINE_HEIGHT_PATCH 1
     90 
     91 /* Let window manager manage dmenu window. */
     92 #define MANAGED_PATCH 0
     93 
     94 /* Additional color scheme for adjacent items. */
     95 #define MORECOLOR_PATCH 0
     96 
     97 /* Mouse support for clicking items. */
     98 #define MOUSE_SUPPORT_PATCH 1
     99 
    100 /* Mouse hover support. */
    101 #define MOTION_SUPPORT_PATCH 0
    102 
    103 /* Multi-selection with Ctrl+Enter. */
    104 #define MULTI_SELECTION_PATCH 0
    105 
    106 /* Bash-like history navigation. */
    107 #define NAVHISTORY_PATCH 0
    108 
    109 /* Workaround for BadLength with color glyphs. */
    110 #define NO_COLOR_EMOJI_PATCH 0
    111 
    112 /* Disable sorting after matching. */
    113 #define NO_SORT_PATCH 0
    114 
    115 /* Non-blocking stdin reading. */
    116 #define NON_BLOCKING_STDIN_PATCH 0
    117 
    118 /* Show matched/total count. */
    119 #define NUMBERS_PATCH 1
    120 
    121 /* Pango markup support. */
    122 #define PANGO_PATCH 0
    123 
    124 /* Password mode - hide input with dots. */
    125 #define PASSWORD_PATCH 1
    126 
    127 /* Pipe selected text back out. */
    128 #define PIPEOUT_PATCH 0
    129 
    130 /* Plain prompt without colors. */
    131 #define PLAIN_PROMPT_PATCH 0
    132 
    133 /* Tab completion support. */
    134 #define PREFIXCOMPLETION_PATCH 0
    135 
    136 /* Preselect item by index. */
    137 #define PRESELECT_PATCH 0
    138 
    139 /* Print index instead of text. */
    140 #define PRINTINDEX_PATCH 0
    141 
    142 /* Return prints input text instead of selection. */
    143 #define PRINTINPUTTEXT_PATCH 0
    144 
    145 /* Don't show items if search is empty. */
    146 #define QUIET_PATCH 0
    147 
    148 /* Reject input if no match. */
    149 #define REJECTNOMATCH_PATCH 1
    150 
    151 /* Input width relative to options. */
    152 #define RELATIVE_INPUT_WIDTH_PATCH 0
    153 
    154 /* Disable Shift/Ctrl+Return. */
    155 #define RESTRICT_RETURN_PATCH 0
    156 
    157 /* Text scrolling for long input. */
    158 #define SCROLL_PATCH 0
    159 
    160 /* Separator for display vs output. */
    161 #define SEPARATOR_PATCH 0
    162 
    163 /* Custom symbols for overflow. */
    164 #define SYMBOLS_PATCH 0
    165 
    166 /* TSV input support. */
    167 #define TSV_PATCH 0
    168 
    169 /* Vertical full width items. */
    170 #define VERTFULL_PATCH 0
    171 
    172 /* Vi mode keybindings. */
    173 #define VI_MODE_PATCH 0
    174 
    175 /* Extended window manager hints. */
    176 #define WMTYPE_PATCH 0
    177 
    178 /* Xresources support for colors/settings. */
    179 #define XRESOURCES_PATCH 1
    180 
    181 /* Position and width options. */
    182 #define XYW_PATCH 0