The default for dmenu is to appear in the first line on screen. There is a patch [1] for positioning the dmenu in the center of the screen. Since ALT+p in dwm starts /usr/bin/dmenu_run the patch doesn't get used. In the shell script, there is no option to add "-c". It would be nice, if there would be a useflag e.g. "center-input" to activate [1] and my attached patch for dmenu_run. Another option would be to offer dmenu_run and a patched dmenu_run_centerd and then the dwm package can be recompiled using dmenu_run_centered. [1] https://tools.suckless.org/dmenu/patches/center/dmenu-center-20200111-8cd37e1.diff Center patches overview: https://tools.suckless.org/dmenu/patches/center/ Reproducible: Always
Created attachment 757611 [details, diff] add -c to dmenu_run to appear in the center of the screen
Other packages are using dmenu, too. I have no idea, how centering would interact with them.
please use this to patch dmenu to your liking: https://wiki.gentoo.org/wiki//etc/portage/patches we'd like to keep it simple and not add a useflag patches. there are too many. simplicity of dwm/dmenu allows easy user patching, and everyone uses unique set of patches.