Conform dmenu border to dwm's

master
Hektor Misplon 2021-01-08 22:32:50 +01:00
parent ade1bdb3bd
commit 0fb9450587
5 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
/* See LICENSE file for copyright and license details. */
/* Default settings; can be overriden by command line. */
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
"monospace:size=10"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
/* fg bg */
[SchemeNorm] = { "#bbbbbb", "#222222" },
[SchemeSel] = { "#eeeeee", "#005577" },
[SchemeOut] = { "#000000", "#00ffff" },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;
/*
* Characters not considered part of a word while deleting words
* for example: " /?\"&[]"
*/
static const char worddelimiters[] = " ";

View File

@ -13,7 +13,7 @@ static const char *colors[SchemeLast][2] = {
/* fg bg */
[SchemeNorm] = { "#555555", "#111111" },
[SchemeSel] = { "#eeeeee", "#111111" },
[SchemeOut] = { "#eeeeee", "#eeeeee" },
[SchemeOut] = { "#eeeeee", "#333333" },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 9;

BIN
.suckless/dmenu/dmenu Executable file

Binary file not shown.

View File

@ -685,7 +685,7 @@ setup(void)
win = XCreateWindow(dpy, parentwin, x, y, mw - 2 * border_width, mh, border_width,
CopyFromParent, CopyFromParent, CopyFromParent,
CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
XSetWindowBorder(dpy, win, scheme[SchemeSel] [ColBg].pixel);
XSetWindowBorder(dpy, win, scheme[SchemeOut][ColBg].pixel);
XSetClassHint(dpy, win, &ch);

BIN
.suckless/dmenu/stest Executable file

Binary file not shown.