naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

maim doesn't work while dmenu is already active #287

Closed TheYellowArchitect closed 5 months ago

TheYellowArchitect commented 10 months ago

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 or dmenu

If I open dmenu and dmenu awaits for input (so it's active), the above command doesn't work.

2084x commented 6 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.

foxpy commented 5 months ago

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: