bakkeby / dwm-flexipatch

A dwm build with preprocessor directives to decide which patches to include during build time
MIT License
1.18k stars 239 forks source link

systray #297

Open kronikpillow opened 2 years ago

kronikpillow commented 2 years ago

hey bakkeby, after along time of using regular dwm, I return to dwm-flexipatch for simplicity of testing and applying patches and i have to say this is my fav dwm project, but I have a major annoyance about the systray, when running your build of systray + dwmblocks + statuscmd this is what I get flexipatch screenshot ... now i remember once asking you about this in the past, and you said that it's due to the original patch, and how it was made, or something like that (if my memory serves me right) ... but this screenshot is a screenshot of the dwm-systray-6.3 patch on top of my regular dwm build, and it doesn't have the big spacing in between my dwmblocks statusbar and the systray ... I find this visual aesthetic a major annoyance, it's just saying something's not right, doesn't look appealing ... wish i knew how to fix it ... but im still a newb in C coding even thou im going trough a course :))

my build can be found here my build if that helps somehow ...

apart from that, I have a question, how do i make the systray appear on all monitors at the same time? i tried setting to -1 in the barrules section, but it just ends up having a systray on the right monitor, and the middle and left one don't have it

bakkeby commented 2 years ago

image

OK so first things first, are you talking about the red or yellow line in this screenshot? Also is the blue icon a systray icon or part of your status?

kronikpillow commented 2 years ago

I'm talking about the yellow line ...

the blue icon is part of the status ... the icons right of the yellow line, is the systray

bakkeby commented 2 years ago

In that case the reason for the gap is due to how the left/right padding (lrpad) is automatically applied to individual bar modules, here ending up with the status ending with padding and the systray adding padding as well.

This was discussed in #207. I addressed this in my (now abandoned) dawn build by allowing the left and right padding for each module to be controlled separately. It would be quite an ordeal to port that plus it would break users' existing configs.

apart from that, I have a question, how do i make the systray appear on all monitors at the same time?

The systray and each individual icons are separate X windows. It is a restriction of X that you can't show the same window in two places, so you can't have the systray appear on all monitors at the same time.

Person1873 commented 1 year ago

In that case the reason for the gap is due to how the left/right padding (lrpad) is automatically applied to individual bar modules, here ending up with the status ending with padding and the systray adding padding as well.

This was discussed in #207. I addressed this in my (now abandoned) dawn build by allowing the left and right padding for each module to be controlled separately. It would be quite an ordeal to port that plus it would break users' existing configs.

apart from that, I have a question, how do i make the systray appear on all monitors at the same time?

The systray and each individual icons are separate X windows. It is a restriction of X that you can't show the same window in two places, so you can't have the systray appear on all monitors at the same time.

it would seem to me based on @bakkeby 's reply, that the systray patch could be modified to spawn multiple windows, (one on each display), however that would be a request for a different github page, or perhaps an email to hackers@suckless.org

bakkeby commented 1 year ago

The systay patch doesn't spawn any windows, the applications do.