feat(glazewm_binding_mode): Add new widget called GlazeWM Binding Mode
#246
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.
Purpose
This widget shows the active binding mode for GlazeWM, so that the user can see if they are in for example Resize or Pause binding modes. With callbacks the user can disable the current binding mode as well.
Concern
The GlazeWM websocket gives back a list of
bindingMode
when the binding mode is changed but as i tried it if i have a binding mode active and i want to activate another one the first one disables thus always resulting in no active binding modes or only one. And i haven't seen a config where anyone would use two or more binding modes at once. Therefore i implemented the widget to handle the first element of the given list. So i think it solves the concern but i can implement the widget to handle all the list elements as well if needed.Preview of widget