dotfiles

My beautiful configs and dotfiles managed by Nix' home-manager
Log | Files | Refs | README | LICENSE

dmenu.h (1901B)


      1 #include "theme.h"
      2 
      3 static int topbar = 1;   /* -b  option; if 0, dmenu appears at bottom     */
      4 static int user_bh = 10; /* add an defined amount of pixels to the bar height */
      5 static int centered = 0; /* -c option; centers dmenu on screen */
      6 static int min_width = 500; /* minimum width when centered */
      7 
      8 /* -fn option overrides fonts[0]; default X11 font or font set */
      9 static const char *prompt = NULL; /* -p  option; prompt to the left of input field */
     10 static const char *dynamic = NULL; /* -dy option; dynamic command to run on input change */
     11 static const char *fonts[] = {"Monaco:size=9"};
     12 static const char *colors_[][3] = {
     13     /*               fg         bg         border   */
     14     [SchemeNorm] = {white, gray3, blue},
     15     [SchemeSel] = {gray4, blue, gray3},
     16     [SchemeOut] = {gray2, red, gray3},
     17 
     18     [SchemeSelHighlight] = {blue, gray4},
     19     [SchemeNormHighlight] = {gray3, white},
     20 };
     21 
     22 
     23 static const char *colors[][3] = {
     24     /*               fg         bg         border   */
     25     [SchemeNorm]       = { "#000000", "#eaffea", "#9eeeee" },  // fg = white, bg = gray2, border = gray2
     26     [SchemeSel]        = { "#eaffea", "#448844", "#55aaaa" },  // fg = blue, bg = gray3, border = blue
     27     [SchemeOut]        = { "#eaffea", "#999999", "#ff0000" },  // fg = orange (light green), bg = gray3, border = red
     28     [3]                = { "#999999", "#eaffea", "#cccccc" },  // fg = gray3, bg = orange (light green), border = gray2
     29     [4]                = { "#999999", "#448844", "#cccccc" }   // fg = gray3, bg = green, border = gray2
     30 };
     31 
     32 /* -l and -g options; controls number of lines and columns in grid if > 0 */
     33 static unsigned int lines = 0;
     34 static unsigned int columns = 0;
     35 
     36 /*
     37  * Characters not considered part of a word while deleting words
     38  * for example: " /?\"&[]"
     39  */
     40 static const char worddelimiters[] = " ";
     41 
     42 /* Size of the window border */
     43 static unsigned int border_width = 2;