fthx / babar

Task bar. GNOME Shell extension
GNU General Public License v3.0
41 stars 14 forks source link

Group application windows from the same desktop #41

Open TavoAdr opened 3 years ago

TavoAdr commented 3 years ago

It would be really nice to have an option to group apps that are in the same desktop, along with indicators of how many apps are open.

fthx commented 3 years ago

We have to think about grouping. There are some ways to achieve that. I won't have at all the time to look at this for some weeks now. If you have a PR, I can review it, of course.

TavoAdr commented 3 years ago

Just to be clear, the application grouping would be the same as in traditional docks, where you only display the program icon once and have an indicator of how many windows for that program are open. (the problem might be doing this by desktop and keeping the minimized windows separate) With the way the icons are currently organized, I can open 8-14 programs until the top bar runs out of space and I think that would be a solution. I just noticed that my description had been a little vague, but about PR, I have no idea what that is.

jlemonde commented 3 years ago

I haven't much experience with building gnome shell extensions, but I know javascript well. I had a look at the code and it shouldn't be difficult. I may have an attempt at it if I manage a spare hour or two this week. Of course, if you can review it afterwards it would be nice!

However, it would break the previews, because there is only one preview linked per button as of now... And I don't feel up to understanding how the previews work – perhaps you can do that then @fthx ?

fthx commented 3 years ago

I think we can affect 2nd button to grouping and 3rd to preview, e.g. I can review that but I'll need some time, I've got a LOT of work at the moment.

jlemonde commented 3 years ago

I was rather thinking of a way to automatically group windows from the same application in the same workspace. That is, a way to avoid the following: Capture d’écran de 2021-10-07 18-41-17 Thus no manual grouping.

fthx commented 3 years ago

I mean, 2nd button to choose the good window in a group icon!

Kobtul commented 2 years ago

I was rather thinking of a way to automatically group windows from the same application in the same workspace. That is, a way to avoid the following: Capture d’écran de 2021-10-07 18-41-17 Thus no manual grouping.

It is also possible to use a terminal that supports tiling such as Tilix to avoid this.

jlemonde commented 2 years ago

The terminal thingy was an example. It also happens with text editors, image viewers, pretty much any app in fact. I switched away from babar because it couldn't group windows, and I would suggest you to fix that, in your own interest, because your concept is really good and should have a chance of getting more popular, if only it supported basic stuff like grouping.