Waybar: Icon only styles?

Created on 23 May 2019  Â·  2Comments  Â·  Source: Alexays/Waybar

Sometimes text icons are very small indeed, see below:

image

Is there anty way I can target icons only with CSS? Often it's simply a matter of increasing their font size, but if I can't target only icons then text becomes massive in comparison.

question

Most helpful comment

It works with pango, but it screws up text's vertical alignment too like in this screenshot, where "archimago" is a text going with the icon in the following way, for instance:

"format": "<span font='22'></span> ~ {}",
"exec" : "cat /etc/hostname",

this

All 2 comments

You can do it with pango markup atm, e.g.

"format": "<span font='12'>{icon}</span> {capacity}%"

It works with pango, but it screws up text's vertical alignment too like in this screenshot, where "archimago" is a text going with the icon in the following way, for instance:

"format": "<span font='22'></span> ~ {}",
"exec" : "cat /etc/hostname",

this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DyslexicAtheist picture DyslexicAtheist  Â·  4Comments

ddorstijn picture ddorstijn  Â·  5Comments

Sqvid picture Sqvid  Â·  5Comments

AlexChalk picture AlexChalk  Â·  4Comments

lovesegfault picture lovesegfault  Â·  3Comments