From 3be3d6381d23eb1dd0045d322919daacaafd1bed Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 18 Nov 2024 12:47:42 -0600 Subject: document changes for dwmsystray --- todo.org | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/todo.org b/todo.org index 0030111..58cfa2a 100644 --- a/todo.org +++ b/todo.org @@ -38,3 +38,22 @@ should be like patch, but shell scripted. and make it work for $EDITOR, $TERMINAL, and $BROWSER ** DONE [#B] Add dwm-center to center certain windows when opened in floating * DWM - Reference +** give dwmsystray a class so picom can identify it +https://www.reddit.com/r/suckless/comments/hzop00/dwm_how_to_remove_picomcompton_shadow_from/ + +may have something for you, at least some preliminary testing suggests that it works. + +In the clientmessage function in dwm.c lives the code where new client windows are embedded in the systray window. + +Try adding this before the XReparentWindow line: + + XClassHint ch = {"dwmsystray", "dwmsystray"}; + XSetClassHint(dpy, c->win, &ch); + +then add + + "class_g = 'dwmsystray'", + +to the shadow-exclude setting in your picom.conf. + +You can set it to "dwm" if you want. I just chose something else in order to be able to differentiate between the bar window and the systray window. -- cgit v1.2.3