On Sat, Feb 14, 2026 at 04:56:52PM +0000, NRK wrote:
> Looks cool, seems to work (somewhat) ok.
>
> Does not build correctly by default though:
>
> pdmenu.c:12:10: fatal error: config.h: No such file or directory
>
> You should make `config.h` a dependency of `pdmenu` in the makefile.
>
> Also, on this topic, I think the whole `config.def.h` file is not very
> [...]
It was my first time actually writing whole Makefile :), I copied a lot
from dmenu itself. Could you please point me to some doc or existing app
that already does this? I personally have some apps I keep up to date
and use git, others I only check occasionally and update using tarball
if there is something interesting or important; in both cases I vimdiff
my config and def to see if something changed, so for me it's fine to
have them separate. But it is true that for an app as simple as this it
may not be really needed.
> Anyways, I said it works "somewhat" ok because if you pass too many
> things to it it just seems unable to cope with it. E.g:
>
> seq 64 | ./pdmenu
I intentionally didn't add any checks, because I never use it with
"uncontrolled" input and didn't want to complicate the code needlessly;
but I will consider any suggestions, that are reasonably simple to
implement :).
> Also it'd be nice if the menu can be moved around. I use xbanish to
> automatically move my cursor to the bottom and so pdmenu ends up
> creating the menu there where half the items end up unselectable and
> offscreen.
I have no idea how to implement that :) and it somewhat goes against the
idea of needing minimum "mouse work". I use unclutter, so I rarely hit
this problem. My first plan was to make sure that whole menu fits on the
screen, but it had the very bad side effect, that the center item didn't
always end up under cursor, which is critical for me - that was the
reason I put one item in the center, so often used actions can be run
without thinking (I have usually at least three mapped there to
different mouse buttons ;). And in the rare case I have required option
off-screen, I just dismiss it (clicking an unmapped button), move the
mouse and run the menu again, takes less than a second. But in some use
cases it might not be optimal, maybe I could add it as an option.
- PVx