klangman / CassiaWindowList

A WindowList/PanelLauncher applet for the Cinnamon desktop environment
https://cinnamon-spices.linuxmint.com/applets/view/372
GNU General Public License v3.0
12 stars 1 forks source link

Request for instructions, or feature request. How to remove certain windows from a group, or add them? #16

Open SteegHobland opened 1 month ago

SteegHobland commented 1 month ago

How do I separate a window from a group? How do I keep private and regular Firefox windows separated? Is there a way to form arbitrary, heterogeneous window groups, dragging any windows desired into them?

If these things are not currently possible, might you add such features in the future?

klangman commented 1 month ago

Sorry, it's not possible to maintain two button groups for the same "application". But I think you could define a new desktop file to launch the same executable and in that way have two distinct groups of firefox windows.

I tried to add a new firefox_private.desktop file to get this to work, but the window-list still groups all the windows even if I use different menu items (desktop files) to launch the windows. I'll keep looking into this, I think it should be possible. Just need to find out how to stop the environment from thinking the two windows are for the same application.

As for adding this feature to Cassia... I don't think I want to do that given how it would complicate the code, but I will put some thought into it, particularity if I can't find a way get the desktop file method to work the way I think it should.

I'll let you know were I am on this after I have some more time to think about it.

Thanks for the suggestion.

klangman commented 1 month ago

Finally got back to this.. Sorry for the delay.

I believe my attempts to use separate Firefox desktop files as a way to create two groups of windows on a grouping window-list applet was thwarted by the fact that Firefox detects existing Firefox windows and rather than keeping the new process around, it simply instructs the existing Firefox process to open a new private Firefox window and then exits the new process.

In any case. I have no ideas for how to create two groups without adding code to the window-list to achieve that goal. I'll continue to consider if there is a clean user friendly way to implement this in CassiaWindowList.