greshake / i3status-rust

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

Wrong icons in sound block #2015

Closed Ergus closed 4 months ago

Ergus commented 4 months ago

Hi: I have been using the sounds block with this very simple config:

[[block]]
block = "sound"
step_width = 5
headphones_indicator = true
merge_with_next = true
#format = " $icon $output_name{ $volume|}"
[[block.click]]
button = "left"
cmd = "alacritty -e pulsemixer"

[[block]]
block = "sound"
step_width = 5
device_kind = "source"

But the "source" icons is wrong, it looks like a luggage:

image

But also when I connect the headphone I don't get any result from headphones_indicator = true.

bim9262 commented 4 months ago

Which icons have are have you set in your i3status-rs config? What font are you using in your i3/sway config for the bar?

Ergus commented 4 months ago

Which icons have are have you set in your i3status-rs config? What font are you using in your i3/sway config for the bar?

Hi:

Very thanks for the quick reply

[theme]
theme = "plain"
[theme.overrides]
idle_fg = "#ffffff"

[icons]
icons = "awesome6"

and

font pango:DejaVu Sans Mono, FontAwesome 9
bim9262 commented 4 months ago

Are you sure that that's the name of the FontAwesome font and not something like Font Awesome 6 Free

Check with:

fc-list | grep -i awesome
Ergus commented 4 months ago

Are you sure that that's the name of the FontAwesome font and not something like Font Awesome 6 Free

Check with:

fc-list | grep -i awesome

It looks like the issue is that I have two fonts in my system: FontAwesome 6 Free and FontAwesome 6 Brands and somehow i3status-rust was using the second one.

bim9262 commented 4 months ago

Glad you got it sorted out then!