Skip to content

net block: extraneous spaces around IP address #498

Closed
@majewsky

Description

@majewsky

I have two net blocks for my physical interfaces, and I've set them up so that it only shows the IP address:

icons = "none"

[theme]
name = "slick"
[theme.overrides]
idle_bg = "#000000"
alternating_tint_bg = "#444444"
separator = ""

[[block]]
block = "net"
device = "enp2s0" # or "wlp4s0" for wireless
ip = true
hide_inactive = true

ssid = false
signal_strength = false
bitrate = false
speed_up = false
speed_down = false
graph_up = false
graph_down = false

The layout looks fine for a disconnected interface, but when an IP has shown, it has unpleasant extra spaces around it:

foo

i3status-rust is version 0.12, the compositor is Sway 1.2 with the following bar config:

bar {
    position top
    font pango:Hack 12
    height 28
    status_command i3status-rs /path/to/i3status-rust.toml
    tray_padding 0

    colors {
        ...
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions