Closed TheYellowArchitect closed 5 months ago
I believe this is because dmenu takes control of all key input when open. you should notice that none of your other dwm binds work when dmenu is running either. this is really a dmenu 'issue', rather than a maim one.
The issue is out of scope of maim, since in this case maim is never being run in a first place. Also maim doesn't handle keyboard bindings, and it really shouldn't do that.
I would suggest various approaches to this issue:
SHCMD("sleep 5 && maim pic-full-$(date '+%y%m%d-%H%M-%S').png")
, pressing your binding, opening dmenu and then waiting for maim to launch;
I use dwm with the following config line
{ ShiftMask, XK_Print, spawn, SHCMD("maim pic-full-$(date '+%y%m%d-%H%M-%S').png") },
I do not have any alias to
maim
ordmenu
If I open dmenu and dmenu awaits for input (so it's active), the above command doesn't work.