Is there any way to have different icons for different profiles in alt-tab menu and window borders?

💻 Help

I use different profiles for different tasks, and my alt-tab menu shows icons. I would like to have a different icon for each profile. Is this possible? I haven't seen anything in about:config that seems related. I know I can build Firefox with an alternate icon, but I don't want to have to manage multiple copies of Firefox, even if I only need to maintain a trivial patch.

I'm aware of ways to create desktop icons that launch different profiles, and I use that. This is specifically about alt-tab and the like, so it's easier for me to switch open windows when I have work and personal Firefox windows on the same page.

Edit: this is on Linux. Using the following .desktop file didn't change the icon used for taskbars, the alt tab menu, and window borders in Xfce4, LXDE, MATE 1.24, or GNOME 42.

[Desktop Entry]
Exec=firefox -P FF2
Terminal=false
Type=Application
Icon=gvim
Categories=Network;WebBrowser;
StartupNotify=false

Posted Jun 27, 2022, 5:47 PM UTC · edited

99
night_fapper:firefox: / :arch:•

That's what I do in linux, I have 3 different profiles , So I created different desktop files for each of them with different icons. Idk how it will work in windows tho as icon for the app is imbedded in exe file itself I think, I could be wrong tho

1
igorlogius:AMOB: Addon Developer•

Might be doable via shortcuts ... but i am also not 100% sure.

1
incorrectwombatOP•

Please read the entire title, at least. I'm looking to change the alt tab/window border icon. I already have desktop icons with different icons.

0
night_fapper:firefox: / :arch:•

I did read it, thing with linux is that you can set a global icon for any app. When I said I created desktop files for each profile, It means all of them have different icons, On Desktop/alt+tab/launcher/taskbar everywhere. its just windows doesnt function that way

2
incorrectwombatOP•

I tried GNOME 42 and MATE 1.24. Neither worked that way. I'm trying out LXDE and Xfce4 next.

edit: neither worked. Desktop file:

[Desktop Entry]
Exec=firefox -P FF2
Terminal=false
Type=Application
Icon=gvim
Categories=Network;WebBrowser;
StartupNotify=false

In all cases, the alt-tab menu and task bar showed the standard firefox icon, but the application menu showed the gVim icon.

1
night_fapper:firefox: / :arch:•

Since you mentioned you are on linux, here's my sample firefox desktop file for work profile

https://pastebin.com/PrgVcfyN

1
monochromeclock:firefox: :nightly: :windows: :linux:•

If you're on Windows, these instructions were what I used to create such a setup — in your case since you already have the profiles set up you can start from step 8, using the profile you want to appear as another taskbar icon as profilename.

You'll need to reboot to actually show a diff icon in the taskbar etc. once you've customized the icon but it should have the alt-tab functionality exactly as you describe.

1
incorrectwombatOP•

Interesting.

I should have mentioned that I'm on Linux -- I was hoping for something in Firefox that would do what I want.

1
panoptigram•

Add --class firefox1 (X11) or --name firefox1 (Wayland) to the command line and StartupWMClass=firefox1 to the .desktop file.

1
incorrectwombatOP•

I tried with --class ff2 --name ff2, --class ff2, and --name ff2.

  • MATE Desktop: uses the default icon
  • Xfce4: uses the default icon
  • LXDE: uses the default icon
  • GNOME on X11: all Firefox profiles are in the same group and use the default icon
  • GNOME on Wayland: all Firefox profiles are in the same group and use the default icon
1