Center patch for dmenu.

This commit is contained in:
Bartek Stalewski 2021-10-20 10:20:38 +02:00
parent e05070759f
commit 32c401e9ae
12 changed files with 958 additions and 20 deletions

View file

@ -2,6 +2,8 @@
/* Default settings; can be overriden by command line. */
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
static int centered = 0; /* -c option; centers dmenu on screen */
static int min_width = 500; /* minimum width when centered */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
"monospace:size=10"