The StepByStepTutorial page says
Apuf…this is very difficult, because of the lack of documentation…So the best way to learn is to see the source code (Yes, the best way…the only way!).
It seems like this is the case.
EDIT: I don’t see anything if I search for “overview” in https://gjs-docs.gnome.org. I was hoping to find info on, for example,
Main.overview. Is that supposed to be documented there?
EDIT: I see! I need to explicitly “enable” APIs in order to be able to search for them there.
Which API contains workspace switching stuff? I have a feeling it is in the “Shell” API. Mind giving a hint?
EDIT: Ok, I see
global.workspace_manager, but I’m not sure what to do with it yet. It says the type is
Meta.WorkspaceManager, but I don’t see any docs for
But this at least helps me know that I can try
global.workspace_manager in lookingglas and see what it has, although I don’t see any method to go to next or previous workspace.
EDIT: Ooooooh, I need to enable the “Meta” APIs in DevDocs. I see Meta 3, Meta 4, and Meta 5. Now I need to figure out which one I need to look at.