qtile
qtile copied to clipboard
System tray icons overlap when changing status
Let's take the wifi (nm-applet ) and bluetooth (blueman-applet) system tray icons.
When I am connected to wifi and bluetooth is on, they look like this:
If I disconnect wifi and disable bluetooth, they should look like this:
But what actually happens is they end up overlapping on top of each other, looking like this:

Right now, I would have to do a qtile restart if I wanted the icons to look as they should.
Using latest Qtile on Arch.
Thanks for reporting.
Can you share your config please and also let me know if there are any error messages in the logs.
Also, what icon set are you using? I can't really recreate with my icons.
Can't recreate. When toggling power state via the applet, the icon redraws correctly for me.
Is a compositor interfering possibly?
Is a compositor interfering possibly?
I tried uninstalling picom. Interestingly blueman-applet now redraws as it should. But nw-applet still persists.
This is the picom.conf I use: https://github.com/arcolinux/arcolinux-qtile/blob/master/etc/skel/.config/qtile/scripts/picom.conf
Same problem. This is an nm-applet bug.
Has anyone tried this in a different window manager to confirm that? If it happens in other WMs then the bug needs to be reported upstream and we can close this.
Polybar and dwm bar good. Qtile, the systray is not updated
So it's not a nm-applet bug then.
No.
What is the background of your bar (colors[0])?
What is the background of your bar (
colors[0])?
I have my wallpapers change on startup (and I frequently change them every few times in session), so pywal changes the colour of colors[0] depending on the wallpaper.
Nice, and presumably the issue is the same no matter what the current state of that is? Do the colors ever have transparency?
Transparency does feel like a likely candidate here. However, if it was, I'd also expect a MatchError in the logs.
Nice, and presumably the issue is the same no matter what the current state of that is?
Correct.
Do the colors ever have transparency?
Yes.
I've also tried turning transparency off by setting opacity to 1. But also no difference. Only uninstalling picom, or doing killall picom made any difference (but again, nw-applet is still acting up). I'm not sure if the very presence of picom is messing something up.
Polybar and dwm bar good. Qtile, the systray is not updated
Have you tested system tray icons other than the ones I mentioned?
For me, the problem was solved if I set the background for the bar this way.
screens = [
Screen(
top=bar.Bar(
[
currentlayouticon, sep, tasks, groupbox, space1, wigetbox, sep, wttr, sep, mem, sep,
udate_tb, check_update, sep, sensor, sep, cpu, sep, emoji_volume, text_volume,
sep, clock, sep, power, sep, systray,
],
30,
margin=[0, 0, 5, 0],
background="#000000.0",
opacity=1.0,
),
left=bar.Gap(size=5),
right=bar.Gap(size=5),
bottom=bar.Gap(size=5),
),
]
opacity=1.0
helps, but like @hamensman i have the same issue with the nm-applet.
I still have some problems with the icon size(screenshot). I believe it's something else from #2438 though, as that has been fixed. The SysTray was behaving correctly(besides the overlap) before i changed the bar colors in the config, but again i highly doubt that was the issue.
Edit: False alarm... the blueman-applet still doesn't work properly.
@ervinpopescu can you post your bar background value and whether you're using picom too.
It would be good if you could try testing with picom disabled and a fully opaque bar background (ie no alpha value).
Turns out that having background="#2e3440.0" is actually making the issue dissappear in thin air xD. I am using picom-ibhagwan-git with dual_kawase as the blur method. I will disable it, but it seems the issue is the opacity, as you do make it sound like.
Edit: Wrong again xDxD, picom seems to be the issue... Without it, they switch on and off perfectly fine.
2nd edit: My bad, I actually changed it back to without alpha when i was testing picom, now with alpha and picom, everything works fine...
background="#2e3440.9",
opacity=1.0
picom -f --blur-method dual_kawase --blur-strength 1 --corner-radius 5
The icon background is transparent as said in the documentation, but they are working smooth as silk.
If I use background="#2e3440", opacity=1.0 and I restart qtile (hoping it won't crash), the SysTray gets redrawn properly.
Should I open another issue for the icon size thing?
Yes. New issue for the size please. Ideally, please post enough detail for us to try to recreate.
I've lost track of this one.
Can anyone confirm if the overlapping is still an issue as I can't recreate it.
Yes, it still is.
Happens to me with volumeicon as well. I have my Systray inside a WidgetBox. Interestingly, collapsing and opening the WidgetBox corrects it without having to reload qtile.
Check this out. I just woke my laptop from sleep and the Systray inside the WidgetBox is overlapping the other widgets.
In this case, opening and closing the WidgetBox doesn't fix it.
Is volumeicon a systray app?
Can you post your config and a screenshot of the issue.
I have some errors in the logs.
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/libqtile/hook.py", line 380, in fire
i(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/libqtile/core/manager.py", line 332, in cmd_reconfigure_screens
self._process_screens()
File "/usr/lib/python3.9/site-packages/libqtile/core/manager.py", line 313, in _process_screens
scr._configure(self, i, x, y, w, h, grp)
File "/usr/lib/python3.9/site-packages/libqtile/config.py", line 289, in _configure
self.set_group(group)
File "/usr/lib/python3.9/site-packages/libqtile/config.py", line 348, in set_group
g1 = self.group
AttributeError: 'Screen' object has no attribute 'group'
Is volumeicon a systray app?
Yes.
Can you post your config and a screenshot of the issue.
I got you in a moment.
@elParaguayo my config
Full volume

Muted

After unmuting

However, it doesn't always happen, and if I kill picom it doesn't happen at all.