A way to have a different Firefox icons per profile on the xfce-panel and in XFCE window manager Alt-Tab list

I use a separate Firefox profile for my work-related tasks since it needs a separate set of addons. I want the work profile to stand out and be different at the first glance from the normal profile at the task bar (XFCE panel “Window buttons”).

So I’m trying to assign a different icon to that Firefox profile. I have created a desktop file that launches that profile and set its “Icon” property to my custom icon.

However, this changes the icon only for the desktop file itself: the icon displayed in Whisker menu (and I suppose the icon displayed if I put this file on my desktop), but the icon displayed on the window button on XFCE panel and when I press Alt-Tab is still the default Firefox icon.

Does anyone know a way to display a custom icon in these places?

Pretty sure it cannot be done.
Maybe if you use a dock plugin, i am not sure. But if the standart window buttons pluging does not read the desktop files, there is not much you can do.

A pity :slightly_frowning_face: Well, I guess, I have to do without it then

Oh, wait! I found a way to do it in X session at least! It is a way that is (I suppose) DE-independent, and in XFCE it works.

  • Install xseticon from AUR
  • Find the WINDOWID of the app for which you want to change its icon “globally” (xdotool search --name "<windowname>")
  • xseticon -id "$WINDOWID" path/to/icon.png

I was half-expecting it to affect only the icon that is displayed in the top-left corner of the app window, but it seems to affect everything: the window buttons on XFCE panel, the list through which you switch apps via Alt-Tab, the Window Menu panel item.

If anyone is reading it and is interested in trying it out, would you be so kind as to post here your results — did it work for you too?

Mod edit: Consecutive posts merged.

2 Likes