Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

feat: custom icons in tray

Open jakehamilton opened this issue 3 years ago • 11 comments

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.

jakehamilton avatar Jan 17 '22 21:01 jakehamilton

This is exactly what I was looking for.

sentientmachin3 avatar Oct 09 '22 13:10 sentientmachin3

Any Updates on this?

antidoid avatar Feb 11 '23 10:02 antidoid

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

LukashonakV avatar Feb 12 '23 08:02 LukashonakV

That would be sick.

rickswe avatar Apr 26 '23 16:04 rickswe

I would love this feature.

sallymanda avatar Jan 07 '24 21:01 sallymanda

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

MintyGitOut avatar Apr 23 '24 21:04 MintyGitOut

I want it! I need it!

Givemegitpls avatar May 03 '24 14:05 Givemegitpls

This would be exactly what I was looking for.

BonfireAtNight avatar Jun 03 '24 16:06 BonfireAtNight

Is this still not possible????

aspauldingcode avatar Jul 17 '24 15:07 aspauldingcode

Another vote. :+1:

bashfulrobot avatar Jul 25 '24 21:07 bashfulrobot

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.

aspauldingcode avatar Jul 26 '24 18:07 aspauldingcode