gnome-shell-extension-appindicator icon indicating copy to clipboard operation
gnome-shell-extension-appindicator copied to clipboard

Custom Icon for single application

Open twobiers opened this issue 3 years ago • 3 comments

Is it possible to customize the indicator icon for a single application? In my particular case I am using two discord instances and I want to be able to differentiate between both. So for example, I want one to be displayed in yellow and one in blue. I tried using the Custom Icons settings as explained in #355 but it seems that it is only applicable on customizing icons as a whole, not the icon for a specific application. Screenshot from 2022-10-04 21-33-42

If it's not possible, is there any GNOME extension that Is capable of achieving this?

twobiers avatar Oct 04 '22 19:10 twobiers

The problem is being able to figure out the application... I've added now some code to get the command line for an indicator, that may be used, but it's definitely not something that is reliable 100% as it relies on what dbus tells us.

3v1n0 avatar Oct 05 '22 01:10 3v1n0

The problem is being able to figure out the application... I've added now some code to get the command line for an indicator, that may be used, but it's definitely not something that is reliable 100% as it relies on what dbus tells us.

So do I understand you correct it is not possible at the moment?

twobiers avatar Oct 05 '22 07:10 twobiers

So I gathered a few information and I think it might be doable if it is somehow possible to customize the WM_CLASS of the application as both share the same discord WM_CLASS. Setting a StartupWMClass Desktop Entry didn't work for me and from my research it seems to be not possible to customize the class for discord and electron in general.

twobiers avatar Oct 05 '22 19:10 twobiers