qtile icon indicating copy to clipboard operation
qtile copied to clipboard

System tray icons overlap when changing status

Open hamensman opened this issue 4 years ago • 92 comments
trafficstars

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: Screenshot_2021-10-23_00-54-29 If I disconnect wifi and disable bluetooth, they should look like this: Screenshot_2021-10-23_00-54-58 But what actually happens is they end up overlapping on top of each other, looking like this: Screenshot_2021-10-23_00-55-21

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.

hamensman avatar Oct 23 '21 00:10 hamensman

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.

elParaguayo avatar Oct 23 '21 07:10 elParaguayo

Can't recreate. When toggling power state via the applet, the icon redraws correctly for me.

elParaguayo avatar Oct 23 '21 08:10 elParaguayo

Is a compositor interfering possibly?

m-col avatar Oct 23 '21 09:10 m-col

@elParaguayo

Here's my config: hamens_config.txt

Nothing in the error logs.

Using Arc icon theme.

hamensman avatar Oct 23 '21 14:10 hamensman

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

hamensman avatar Oct 23 '21 15:10 hamensman

Same problem. This is an nm-applet bug.

krive001 avatar Oct 24 '21 08:10 krive001

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.

elParaguayo avatar Oct 24 '21 09:10 elParaguayo

Polybar and dwm bar good. Qtile, the systray is not updated

krive001 avatar Oct 24 '21 09:10 krive001

So it's not a nm-applet bug then.

elParaguayo avatar Oct 24 '21 09:10 elParaguayo

No.

krive001 avatar Oct 24 '21 09:10 krive001

What is the background of your bar (colors[0])?

m-col avatar Oct 24 '21 10:10 m-col

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.

hamensman avatar Oct 24 '21 10:10 hamensman

Nice, and presumably the issue is the same no matter what the current state of that is? Do the colors ever have transparency?

m-col avatar Oct 24 '21 10:10 m-col

Transparency does feel like a likely candidate here. However, if it was, I'd also expect a MatchError in the logs.

elParaguayo avatar Oct 24 '21 10:10 elParaguayo

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.

hamensman avatar Oct 24 '21 10:10 hamensman

Polybar and dwm bar good. Qtile, the systray is not updated

Have you tested system tray icons other than the ones I mentioned?

hamensman avatar Oct 24 '21 11:10 hamensman

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),
    ),

]

krive001 avatar Oct 25 '21 11:10 krive001

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 avatar Oct 25 '21 22:10 ervinpopescu

@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).

elParaguayo avatar Oct 25 '21 22:10 elParaguayo

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?

ervinpopescu avatar Oct 25 '21 23:10 ervinpopescu

Yes. New issue for the size please. Ideally, please post enough detail for us to try to recreate.

elParaguayo avatar Oct 26 '21 00:10 elParaguayo

I've lost track of this one.

Can anyone confirm if the overlapping is still an issue as I can't recreate it.

elParaguayo avatar Nov 01 '21 01:11 elParaguayo

Yes, it still is.

ervinpopescu avatar Nov 01 '21 07:11 ervinpopescu

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.

CSpencerND avatar Nov 07 '21 11:11 CSpencerND

Check this out. I just woke my laptop from sleep and the Systray inside the WidgetBox is overlapping the other widgets. 2021-11-07_06-09 In this case, opening and closing the WidgetBox doesn't fix it.

CSpencerND avatar Nov 07 '21 11:11 CSpencerND

Is volumeicon a systray app?

Can you post your config and a screenshot of the issue.

elParaguayo avatar Nov 07 '21 11:11 elParaguayo

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'

CSpencerND avatar Nov 07 '21 11:11 CSpencerND

Is volumeicon a systray app?

Yes.

Can you post your config and a screenshot of the issue.

I got you in a moment.

CSpencerND avatar Nov 07 '21 11:11 CSpencerND

@elParaguayo my config

CSpencerND avatar Nov 07 '21 11:11 CSpencerND

Full volume image

Muted image

After unmuting image

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

CSpencerND avatar Nov 07 '21 11:11 CSpencerND