Use dmx, dmy offsets even when centered I should also probably upstream this as a patch to center[0]. This allows for arguments to be combined, like dmenu -c -y -100 if you want the menu to have a smaller width, be centered on x, and be 100 pixels above the center on y. [0]: https://tools.suckless.org/dmenu/patches/center/
1 files changed, 2 insertions(+), 2 deletions(-) M dmenu.c
M dmenu.c => dmenu.c +2 -2
@@ 909,8 909,8 @@ setup(void) if (centered) { mw = MIN(MAX(max_textw(), min_width), info[i].width); x = info[i].x_org + ((info[i].width - mw) / 2); y = info[i].y_org + ((info[i].height - mh) / 2); x = info[i].x_org + ((info[i].width - mw) / 2) + dmx; y = info[i].y_org + ((info[i].height - mh) / 2) + dmy; } else { x = info[i].x_org + dmx; y = info[i].y_org + (topbar ? dmy : info[i].height - mh - dmy);