greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.88k stars 475 forks source link

net block doesn't correctly display up/down speeds #205

Closed devnoname120 closed 4 years ago

devnoname120 commented 6 years ago

image

Relevant configuration:

[block]
block = "net"
device = "wlp3s0"

System info:

atheriel commented 6 years ago

Yikes. Any chance this is related to a font issue? Which are you using?

devnoname120 commented 6 years ago

I'm using the recommended fonts:

bar {
      font pango:DejaVu Sans Mono, FontAwesome 12
      position top
      status_command path/to/i3status-rs path/to/config.toml
      colors {
            separator #666666
            background #222222
            statusline #dddddd
            focused_workspace #0088CC #0088CC #ffffff
            active_workspace #333333 #333333 #ffffff
            inactive_workspace #333333 #333333 #888888
            urgent_workspace #2f343a #900000 #ffffff
      }
}
devnoname120 commented 6 years ago

I can confirm that the bug is still present on latest master 0d21944b76fef87b5ff628a3ea1aca09028281b4.

devnoname120 commented 6 years ago

This seems fixed now: image

There is still a problem: too much whitespace around the up and down arrows. This might be a duplicate of https://github.com/greshake/i3status-rust/issues/238, though.

Here are the installed font-related packages:

noname120% aurman -Qs font
local/cantarell-fonts 1:0.111-1
    Humanist sans serif font
local/fontconfig 2:2.13.0+15+gc60ed9e-1
    A library for configuring and customizing font access
local/freetype2 2.9.1-1
    Font rasterization library
local/gsfonts 20180524-1
    (URW)++ Core Font Set [Level 2]
local/libfontenc 1.1.3-2
    X11 font encoding library
local/libxfont2 2.0.3-1
    X11 font rasterisation library
local/libxft 2.3.2-2
    FreeType-based font drawing library for X
local/noto-fonts 20180322-1
    Google Noto TTF fonts
local/noto-fonts-emoji 20180810-1
    Google Noto emoji fonts
local/powerline-fonts 2.7-2
    patched fonts for powerline
local/t1lib 5.1.2-6
    Library for generating character- and string-glyphs from Adobe Type 1 fonts
local/ttf-arphic-uming 0.2.20080216.1-6
    CJK Unicode font Ming style
local/ttf-baekmuk 2.2-10
    Korean fonts
local/ttf-font-awesome 5.3.1-1
    Iconic font designed for Bootstrap
local/ttf-font-awesome-4 4.7.0-5
    100% free version of font awesome.
local/ttf-freefont 20120503-5
    Set of free outline fonts covering the Unicode character set
local/woff2 1.0.2-1
    Web Open Font Format 2 reference implementation
local/xorg-bdftopcf 1.1-1 (xorg xorg-apps)
    Convert X font from Bitmap Distribution Format to Portable Compiled Format
local/xorg-font-util 1.3.1-2 (xorg-fonts xorg)
    X.Org font utilities
local/xorg-font-utils 7.6-5
    Transitional package depending on xorg font utilities
local/xorg-fonts-encodings 1.0.4-5 (xorg-fonts xorg)
    X.org font encoding files
local/xorg-mkfontdir 1.0.7-9 (xorg xorg-apps)
    Create an index of X font files in a directory
local/xorg-mkfontscale 1.1.3-1 (xorg-apps xorg)
    Create an index of scalable font files for X
local/xorgproto 2018.4-1
    combined X.Org X11 Protocol headers
atheriel commented 6 years ago

I'll note at the outset that we have no ability to fix font-related issues in the code, so any advice I give you is just culled from other issues. I notice that you have two versions of FontAwesome installed, although I doubt that's the issue. DejaVu Sans also seems to be missing, but that's relevant only if you're actually trying to use it.

What happens when you use different fonts?

ammgws commented 4 years ago

Closing due to inactivity.