jarcode-foss / glava

GLava - OpenGL audio spectrum visualizer
GNU General Public License v3.0
1.17k stars 58 forks source link

Dwm support #212

Open exkc opened 2 years ago

exkc commented 2 years ago

dwm will treat any panel or desktop widget as normal window(include glava)(so it will tie them) by default when you use any any panel or desktop widget dwm(include glava).However i get it fix by using a custom patch call dontmanage.

This patch basically are add type of windows call the dontmanage that type of windows will be unmange by dwm which you can specify which windows belong to this type of windows in config.h.

However, This had a serious issue where when you restart dwm via restartsig patch , the unmangered windows wiil be above (cover) all the windows.Luckly there are work around for that : i add few line of code to make dwm pull that unmangered windows above or below all the windows.you can config which windows you want dwm put it above or below all the windows .For example : you can config your panel above all the windows , you can config your desktop icon below all the windows.

exkc commented 2 years ago

Here is my dwm : https://gitlab.com/exkc/dwm-exkc

if you want the dontmanage patch , you can extract it from my dwm.However , I won't teach you how to extract it or help you to extract it .(put it simplely: if you want to extract dontmanage patch from my dwm, go fuck youself)

exkc commented 2 years ago

After some research, I find a better patch for dwm that better than my one.(https://www.reddit.com/r/suckless/comments/pyhx5d/dwm_desktop_window_implementation/)