Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Allow to use SVG as icons

Open sn3w opened this issue 3 years ago • 12 comments

Icons like Octicons provide SVG files for setting up icons and I'll love to see Waybar support having SVG set as icons.

sn3w avatar Nov 29 '21 13:11 sn3w

would love to be able to use things like https://heroicons.com/

Moelf avatar Jul 24 '22 14:07 Moelf

Would love to use https://materialdesignicons.com/ in the waybar.

gutfacehubook avatar Sep 18 '22 10:09 gutfacehubook

Personally I am not interested in additional icon themes, but svg icon support would be a very welcoming addition.

What is required to get svg support in waybar / systray. My issue is mainly the svg icons in the systray which do not show up.

hanckmann avatar Sep 26 '22 16:09 hanckmann

As workarround i found it is able to load svg as background image: waybar

// waybar config
...
"modules-left": [ "custom/logo", ... ]
...
"custom/logo": {
  "format": "    ",
  "tooltip": false,
  "on-click": "exec lain.sh &"
},
...
/* waybar style.css */
...
#custom-logo {
  background-image: url('/home/lain/.config/waybar/void.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain; 
}
...

i know this is not the best way to do, but I wanted to share this temporary method I'm using for now.

gutfacehubook avatar Mar 05 '23 13:03 gutfacehubook

As workarround i found it is able to load svg as background image: waybar

// waybar config
...
"modules-left": [ "custom/logo", ... ]
...
"custom/logo": {
  "format": "    ",
  "tooltip": false,
  "on-click": "exec lain.sh &"
},
...
/* waybar style.css */
...
#custom-logo {
  background-image: url('/home/lain/.config/waybar/void.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain; 
}
...

i know this is not the best way to do, but I wanted to share this temporary method I'm using for now.

Any way to do something like this on a module with multiple states? (such as the battery module)

sandmuel avatar Dec 27 '23 01:12 sandmuel

I would really like to be able to use svg icons, as doing something like using bitone/duotone icons is possible with fonts as far as I can tell, and it would make a massive difference in customisability.

5p4r74cu5 avatar Jan 05 '24 03:01 5p4r74cu5

Would love to use https://materialdesignicons.com/ in the waybar.

workaround: Arch AUR has ttf-material-design-icons-git.

jlo62 avatar Jan 23 '24 16:01 jlo62