greshake / i3status-rust

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

Help configuring i3status-rust + Font Awesome #1892

Closed haug1 closed 1 year ago

haug1 commented 1 year ago

My sound volume icon looks like this:

image

Arch Linux

i3status-rust 0.31.1-1
ttf-font-awesome 6.4.0-1

i3 bar config:

bar {
        font pango:DejaVu Sans Mono, FontAwesome 16
        status_command /usr/bin/i3status-rs /home/main/.config/i3status-rs.toml
        position top
        tray_output primary
}

i3status-rust config:

icons_format = "{icon}"

[theme]
theme = "solarized-dark"

[icons]
icons = "awesome6"

[[block]]
block = "sound"
[[block.click]]
button = "left"
cmd = "pavucontrol"
haug1 commented 1 year ago

I fixed it by replacing the font option in the bar config with this:

font pango:Source Code Pro Semibold, Font Awesome 6 Free 16

I found that using font-manager was effective in finding exactly what I had to put for the font:

image

Use Family to reference the font.