personal/dotfiles

configs/dmenu.h in master
Repositories | Summary | Log | Files | README.md | LICENSE

dmenu.h (1901B) download


 1#include "theme.h"
 2
 3static int topbar = 1;   /* -b  option; if 0, dmenu appears at bottom     */
 4static int user_bh = 10; /* add an defined amount of pixels to the bar height */
 5static int centered = 0; /* -c option; centers dmenu on screen */
 6static int min_width = 500; /* minimum width when centered */
 7
 8/* -fn option overrides fonts[0]; default X11 font or font set */
 9static const char *prompt = NULL; /* -p  option; prompt to the left of input field */
10static const char *dynamic = NULL; /* -dy option; dynamic command to run on input change */
11static const char *fonts[] = {"Monaco:size=9"};
12static 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
23static 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 */
33static unsigned int lines = 0;
34static unsigned int columns = 0;
35
36/*
37 * Characters not considered part of a word while deleting words
38 * for example: " /?\"&[]"
39 */
40static const char worddelimiters[] = " ";
41
42/* Size of the window border */
43static unsigned int border_width = 2;