From 2479505dc49f3b6ec98fad2c918c16beb72b87df Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Mon, 5 Aug 2024 18:15:13 +0400 Subject: center patched --- config.def.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 1edb647..832896f 100644 --- a/config.def.h +++ b/config.def.h @@ -2,6 +2,9 @@ /* Default settings; can be overriden by command line. */ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ +static int centered = 1; /* -c option; centers dmenu on screen */ +static int min_width = 500; /* minimum width when centered */ +static const float menu_height_ratio = 4.0f; /* This is the ratio used in the original calculation */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { "monospace:size=10" -- cgit v1.2.3