I3status-rust: signal_strength = true in Net block , causes graphical glitch...

Created on 15 Nov 2019  路  14Comments  路  Source: greshake/i3status-rust

when I set signal_strength = true in the Net block and reload i3, just before signal strength loads I see black spots on the status line in the net area which disappears after signal strength is fully loaded....

bug fonts-and-rendering help wanted

Most helpful comment

Can confirm:

Before it's loaded:
image

After it's loaded:
image

All 14 comments

Can confirm:

Before it's loaded:
image

After it's loaded:
image

You can also reproduce this by disabling everything in the net block except for the signal strength icon. The graphical bug then persists forever.
image

Can someone using sway confirm whether they can reproduce this?

Also, can someone who's experiencing this run i3status-rs from the command line and post the output? Interested to see if there's something strange there.

image

I can't reproduce on sway. I'm using a simulated wireless device but it shouldn't make a difference... :/

Closing due to lack of response and not being able to reproduce it here. Please re-open if you have further info.

I just checked and the block does actually send the wrong color information before it's loaded:

Before loading:

{
    "background":"#000000",
    "color":"#000000",
    "full_text":"",
    "markup":"pango",
    "separator":false,
    "separator_block_width":0
}

After loading:

{
    "background":"#535353FF",
    "color":"#FFFFFFFF",
    "full_text":" 84% ",
    "markup":"pango",
    "name":"b74fa0319ac2436086692d7fa59e7d60",
    "separator":false,
    "separator_block_width":0
}

So this probably is an issue that is solvable in i3status-rust

Is it just the net block that has that behaviour?

It's the only one i ever see it on, yes. All other blocks have their colors set correctly immediately.

Also, it's worth noting that this only happens for the signal strength widget, not the entire block.

Unfortunately i'm not well-versed enough in rust to debug this. It also doesn't bother me that much since it's only ever there for a couple of seconds.

Does it happen when using the recently introduced format string for the net block? If not then the format string has indirectly fixed this issue.

I'll have a look

IIRC it will still use widgets if the deprecated options are used, so make sure only the format option is specified in your config when you try.

First of all unrelatedly, after updating my current config shows fields that it didn't before. Even though i have set

[[block]]
block = "net"
device = "ppp0"
hide_inactive = true
hide_missing = true
interval = 10
speed_up = false
speed_down = false
ip = false

[[block]]
block = "net"
device = "eno1"
hide_inactive = true
hide_missing = true
interval = 10
speed_up = false
speed_down = false
ip = false

[[block]]
block = "net"
device = "wlp2s0"
signal_strength = true
interval = 10
speed_up = false
speed_down = false
ip = false

The blocks show some speeds:
image

This is probably unintended and should be fixed?

Alright, with the format string it now shows this before initialization, which is way better:

image

Resolved via #738

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rikorose picture Rikorose  路  5Comments

yawpitch picture yawpitch  路  4Comments

YodaEmbedding picture YodaEmbedding  路  4Comments

Thra11 picture Thra11  路  6Comments

concatime picture concatime  路  4Comments