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.
I want to enable vertical switching to be able to more easily support complex custom layouts. My current layout is three monitors side by side on one computer and then one on top in the middle that is on a separate computer I want to only be able to travel between computers at the top of the middle monitor and the bottom of the top monitor. This code allows for pretty trivial custom do_screen_switch functions. As an example the main part of mine is as follows:
This is only really gonna work for my setup but I am also planning on writing a doc so that others with less standard layouts can also take advantage of this instead of pretending they are in a linear setup. I have not written this doc yet and if desired I can get it written and add it to this PR or I can do a future one to put it wherever would be best. I just wanted to get this PR up to make sure there wasn't anything that I'm doing here that is a good way to handle it and I don't need to change my approach before writing the doc.
I ran some basic tests with the stock do_screen_switch function and the changes seem to not have any side effects until the custom do_screen_switch logic is introduced.