Repository navigation
feature: expose current driftwm bindings through new driftwm msg bindings command - #340
Open
Granitosaurus wants to merge 1 commit into
Open
Granitosaurus wants to merge 1 commit into
Granitosaurus wants to merge 1 commit into
Conversation
External tools (a cheatsheet, a launcher) had no way to learn what is bound: the merged result of the built-in defaults and the user's config exists only inside the compositor. The new request returns the keyboard, tap and mouse bindings in config syntax, sorted, with mouse bindings tagged by context. Gesture and touch bindings are not included yet. Display impls for Action, KeyCombo and the mouse types render a binding back into the config's own spelling; a test parses every default back to prove the two directions agree. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Granitosaurus
marked this pull request as ready for review
November 11, 2026 09:24
Author
|
I'm building a cheatsheet / user assistant app separate from driftwm so this would be super useful |
driftwm msg bindings command
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'd like other programs to know what are my driftwm bindings and for that each program has to reparse the
config.tomlwith same parser as driftwm. So better approach here would be to have driftwm itself report it's registered bindings rather than have everyone re-implement the parser.For this I've added a new command: