nyyManni / dmenu-wayland

dmenu for wayland-compositors
MIT License
197 stars 22 forks source link

dmenu -m must accept output name #7

Closed cyberhuman closed 5 years ago

cyberhuman commented 5 years ago

In a multi monitor setup, the order of outputs may be different on each boot, or when a monitor is connected and then disconnected. Hence it would be nice for dmenu-wl to accept an output name in -m instead of the number (and by the way, manpage is not updated for -m and mentions Xinerama).

e.g. it would be nice to invoke dmenu like this:

$ dmenu-wl_run -m LVDS-1
cyberhuman commented 5 years ago

Thank you for fixing it! It's not a big deal, but I've noticed there is a call to strlen in a for loop :-)