i3-sway: Allow providing order of other workspaces #6546
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'm using i3, not sway.
For multi-monitor setups, I end up the second screen having workspace 10 (because it is bound to Mod4+0, so ordered before the other numbers).
Needs more testing, especially with sway/tweaking to get it to work with sway. But posting it here because it might be useful.
CC #6041
Description
Checklist
Change is backwards compatible -- I tried to make it so by making
defaultWorkspace
have a priority of 100. But strictly speaking this isn't backwards compatible, because it makes workspace number 1 the default, not number 10. (See tests).Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
or
nix build --reference-lock-file flake.lock ./tests#test-all
using Flakes.This currently moves the workspace stuff next to eachother, because I thought it's neater, but it isn't necessary.
Currently the sway tests are broken, because I haven't fixed sway up
Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
Maintainer CC
@sumnerevans