Integrating Conky into dwm ========================== Lukas Fleischer When switching from OpenBox back to good ol' dwm recently, I had the problem that Conky would not integrate well when using the `own_window yes` setting. dwm just tried to manage the window and even when using dwm's `rules[]` array to make sure it is treated as a floating window, dwm broke the window geometry set up in my `.conkyrc` by placing it in a random position on the screen. I basically just searched for a way to make dwm ignore that window completely. Having a brief look at dwm's source code, this turned out to be very simple. A map request is handled as follows: ---- void maprequest(XEvent *e) { static XWindowAttributes wa; XMapRequestEvent *ev = &e->xmaprequest; if(!XGetWindowAttributes(dpy, ev->window, &wa)) return; if(wa.override_redirect) return; if(!wintoclient(ev->window)) manage(ev->window, &wa); } ---- So if we can make Conky set the override-redirect flag on its window, we would have solved all of our problems. Well. Some five minutes later, I had an awesome Conky panel at the right-hand side of my monitor, using the `own_window_type override` setting in my `.conkyrc`.