nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
233 stars 25 forks source link

Detect WM with $XDG_CURRENT_DESKTOP ? #119

Open nazarewk opened 3 months ago

nazarewk commented 3 months ago

it would be useful for drawer to detect default -wm value with XDG_CURRENT_DESKTOP

nwg-piotr commented 3 months ago

Well, this code was contributed, and personally I'd do it a different way: add a boolean flag to force running commands through the compositor, then detect the compositor in use and select swaymsg exec or hyprctl dispatch exec (or another command for another compositor) accordingly. Unfortunately I didn't think about it while accepting the PR. Changing the way it works right now would result in breaking users' configs, so it needs to have a strong justification.