Add options to isolate monitors and hide empty spaces #361
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds two options to the "Toggles" section of the extension settings:
The options change the behavior when switching workspaces by stack using e.g. Super+Above_Tab.
Rationale
Isolate Monitors
I use a multi-monitor setup and tend to leave workspaces assigned to a given monitor. Super+Above_Tab is the quickest way to switch recent workspaces, but often I end up switching to a workspace that was assigned to another monitor by mistake, switching to the wrong workspace and assigning the workspace the wrong monitor. Showing only workspaces that belong to the active monitor avoids this kind of mistake.
Hide Empty Spaces
At the moment, I use 10 static workspaces. Showing all of them in the recent-workspaces switcher adds a lot of clutter and makes it hard to find workspaces, that actually have windows on them. Additionally, selecting an empty workspace from the recent-workspaces switcher is almost never what I want to do. When I want an empty workspace, I can still get to one by using the ordered-workspace switcher, by selecting it directly using a shortcut, or assign a shortcut especially for going to an empty workspace.
Considerations
This pull request solves my problems, but one could consider a few changes:
I don't have a good idea which of the proposed changes might be useful, but I'm happy to adapt the pull request if needed.