-
Notifications
You must be signed in to change notification settings - Fork 40
Overview when switching should contain display of workspace windows #4
Comments
That would be nice indeed. |
👍 I was used to this when using Unity on Ubuntu, the behavior there is like described here. |
IMO the only thing missing from this extension. Maybe some inspiration can come from this other extension that shows workspace previews: https://github.com/passingthru67/workspaces-to-dock |
Nice reference @sanderboom, thanks! |
This one seems more related to what we want to achieve. |
I have tried implementing it but I don't know how to make it centre aligned. Anyone who wants to try and fix/improve it can find the code in https://github.com/zakkak/workspace-grid-gnome-shell-extension/tree/thumbnails. It currently displays both the switcher and the thumbnails for testing purposes. |
@zakkak Do you have a short explanation on how to test? |
@sanderboom You will need to clone the branch with Then enter the directory and run Finally, using gnome tweak tools install that zip (CAUTION: this will replace your current version of the extension) |
@zakkak Thanks for the work on this! I'm on holiday now 😎 will check later |
Finally got a chance to test, you are almost there! Nice work. If I find some time I can see if I can help. Would it also be possible to scale down the previews? I'm using 2x5 and they dont fit on my screen. |
Is this specific to this issue or general? In the latter case, please create a new issue for it. Also, a screenshot would help me better understand the problem. |
New issue with screenshot: #23 |
After upgrading to Ubuntu 17.10, I wanted to get the workspace grid as close to the Unity situation as possible. Your grid already does a great job, but I would also really appreciate to get thumbnails of the workspaces' contents as described in this issue. Is there any hope to get this any time soon, or is this issue abandoned? On the right side of the overview (when pressing |
AFAIK no one is working on it. |
@zakkak It looks like changing I'm not quite sure how to fix the uneven borders. |
Thanks @Notgnoshi. I have cleaned up the code and added a new option to conditionally enable the thumbnails (it is disabled by default). Note that currently there is no proper theme support (the thumbnails are displayed without any background). |
I checked out the thumbnails branch, ran
where I've Running Gnome 3.28.1 on Ubuntu 18.04. Let me know if I can help figure this out (I know no JS). |
I have encountered and reproduced @mhauru 's bug issue. |
I don't want to harass @zakkak but man.. You're so close to the perfection. Don't give up (freakin' love your extension) ! |
Hi, I would be really grateful if this worked, it's my biggest blocking point with the Unity -> Gnome switch after upgrading to Ubuntu 18.04 from 16.04. I gave the code a look, but didn't find anything obvious and failed to find good documentation for the Gnome API. Thanks for your great work! |
I really would like to have this feature, too, so I had a look. I know JS but I know nothing about Gnome extension development. Here is what I found: The relevant line in the error log seems to be this:
So
Having said all this, I found that I get these errors in the As I have no idea of Gnome extension development all this may be totally irrelevant. But I'm willing to do more work for this feature so I'd greatly appreciate if you could give me some advice or point me in the right direction to go forward. |
Hello @mzur, I fixed the porthole issue by updating the sources to much those of gnome-3.28 (most of the code is copied from the original sources). I have also rebased the thumbnails branch to the latest 3.28. You are right that some errors are consistent in both branches, unfortunately I don't understand them that well either. Messages like
Show that somehow we mess with objects that have been already destroyed and this is a serious bug. Now on the thumbnails issue, it used to show the thumbnails, so it looks like at some point gnome 3.28 got a patch that broke it for us. Unfortunately I am not very familiar with JS nor with GJS so I don't think I can really direct you (if I could I would have probably fixed the issues as well :) ). What I have found handy is looking through the GJS sources, e.g., https://github.com/GNOME/gnome-shell/blob/gnome-3-28/js/ui/workspaceThumbnail.js and trying to figure out how things work. |
I couldn't wrap my head around all the code of this extension and the error messages it throws so I started to implement my own clone from scratch. It is very basic right now and does not support most of the features of Workspace Grid (including the workspace thumbnails) but I'm working on it. I don't intend to bring it to feature parity with Workspace Grid, though. |
I'm finished with my simple clone: You can find the relevant changes for the switch to workspace thumbnails in this commit (in |
If one tries to switch workspaces using the Gnome "hot corner" then one can see all workspaces with all the windows respectively opened in them. I would like a similar display here, while switching workspaces, rather than just a grid of boxes (where it's not obvious whether the windows you want to see are actually on which workspace). I wonder if the code can just be copy-pasted from the hot-corner view codebase.
The text was updated successfully, but these errors were encountered: