~brown121407/dwm

44b9a5fecea116a21aabec64072c01b8e3e94f58 — Alexandru-Sergiu Marton 1 year, 18 days ago b524834
Add dmenu padding.

Requires the xyw and lineheight patches for dmenu.
1 files changed, 8 insertions(+), 2 deletions(-)

M config.def.h
M config.def.h => config.def.h +8 -2
@@ 1,5 1,11 @@
/* See LICENSE file for copyright and license details. */

#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)

#define VERTPAD 10
#define DMENU_HEIGHT 22

/* appearance */
static const unsigned int borderpx  = 3;        /* border pixel of windows */
static const unsigned int snap      = 16;       /* snap pixel */


@@ 11,7 17,7 @@ static const int smartgaps          = 0;        /* 1 means no outer gap when the
static const int swallowfloating    = 0;        /* 1 means swallow floating windows by default */
static const int showbar            = 1;        /* 0 means no bar */
static const int topbar             = 1;        /* 0 means bottom bar */
static const int vertpad            = 10;       /* vertical padding of bar */
static const int vertpad            = VERTPAD;  /* vertical padding of bar */
static const int sidepad            = 10;       /* horizontal padding of bar */
static const char *fonts[]          = { "monospace:size=12" };
static const char dmenufont[]       = "monospace:size=12";


@@ 74,7 80,7 @@ static const Layout layouts[] = {

/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, "-h", STR(DMENU_HEIGHT), "-y", STR(VERTPAD), NULL };
static const char *termcmd[]  = { "st", NULL };

static Key keys[] = {