Closed fnkabit closed 3 years ago
Sounds like you want to implement:
Sounds like you want to implement:
- a hook that is called when the windows size / state changes
- a scripting function to switch between workspaces
Yes, I think so :) Do you think it would be useful ? Can I work on it ? Thanks !
Sure and sure. 😁 It would be even better if you then also write a script that allows users to switch between two workspaces in maximized / non-maximized mode.
I guess it would be great if the hook would recognize all kind of layout changes. Moving, resizing, minimizing, maximizing, full-screen, ... And also coordinates and size as parameter (or a way to fetch them, e.g. scripting functions).
@pbek Will start working on it ASAP.
Most excellent! 👍🏻
Created PR to implement a basic version of this that allows for switching between window maximized workspace / non-maximized workspace.
Will update docs once you agree on API changes. :-)
I added my 2c. 😉
Ok, all "mopping up" is done. 😆
mainWindow.getWorkspaceUuidList()
,
mainWindow.getWorkspaceUuid()
and mainWindow.setCurrentWorkspace()
to
access workspaces and a new hook windowStateChangedHook
to notice window
state changes (for #2007, thank you @fnkabit)
Dynamic Workspace
in the script repository that
you can use to toggle workspaces when you maximize the windowThere now is a new release, could you please test it and report if it works for you?
It works. Thanks for all the reviews @pbek !
Great, thank you for the nice addition and for testing! 😁
I would like to be able to specify that below a certain window size, use layout x, above that window size, use layout y. For example, my use case: