Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.78k stars 711 forks source link

feat: custom icons in tray #1400

Open jakehamilton opened 2 years ago

jakehamilton commented 2 years ago

Waybar allows for customizing the output of most modules. It would be awesome to let users replace applet icons with their own. This would make the bar's style even more consistent.


I see two possible ways people would want to use this feature. The first being with an icon font like is common with other blocks. Here's an example of what that config might look like:

{
  "layer": "top",
  "modules-right": ["tray"],
  "tray": {
    "icons": {
      "discord": "icon-font-char-here"
    }
  }
}

The atlernative would be to use images similar to what is done today:

{
  "layer": "top",
  "modules-right": ["tray"],
  "tray": {
    "icons": {
      "discord": "/path/to/image.png"
    }
  }
}

I suppose it's also possible to support both options if we're comfortable adding multiple entries to the tray config (eg. fontIcons and imageIcons).


Of course, this will only be possible if there's something (like app id) that we can match on. I'm not very familiar with how applets or the system surrounding it work, so I'm not sure if this is possible. It seems like something that should be doable.

sentientmachin3 commented 2 years ago

This is exactly what I was looking for.

antidoid commented 1 year ago

Any Updates on this?

LukashonakV commented 1 year ago

Hi @antidoid , not sure can you check whether it PR1978 solves current enhancement.

rickalex21 commented 1 year ago

That would be sick.

5p4r74cu5 commented 10 months ago

I would love this feature.

AidanNotFunny commented 7 months ago

This would be great to see, so I can make my tray icons integrate more with my system.

Givemegitpls commented 7 months ago

I want it! I need it!

BonfireAtNight commented 6 months ago

This would be exactly what I was looking for.

aspauldingcode commented 4 months ago

Is this still not possible????

bashfulrobot commented 4 months ago

Another vote. :+1:

aspauldingcode commented 4 months ago

I think adding a tray shade/hue overlay would be good too. like grayscale or sepia or a custom tint, where all icons are shaded the same.