-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support conditionality based on WM_NAME
#2
Comments
Step 1: cae3135 |
The example with |
Nothing, both would hang out on the context object and be referable by conditionals. |
WM_NAME
I took care of this while working on the X error stuff since it was right there. |
You closed this as completed, so is it actually ready to start messing with WM_NAME enhancements? I looked in |
Yes. |
Support keymap and modmaps that are conditional on window name, not just class.
What needs to be done IMHO:
KeyContext
wm_class
fromwm_name
(since we have a singlewindow
helper nowxorg
likely needs to have a function that returns a dict with both name and class that KeyContext can consumeRelated: tridactyl/tridactyl#4256
I dislike how this is speced in mooz/xkeysnail#129 :
This "just add another param to lambda" isn't great to read and is hard to deal with on the other side due to the varying number of arguments. (not to mention remembering the ordering, etc).
So I definitely think we should support this, it's just a question of what syntax to use... I'm perhaps imagining a wrapper function, but open to other suggestions.
Or even better a single context dict:
So instead of
modmap
andconditional_modmap
there would only be a singlemodmap
API that you would either wrap in a conditional or not...This work has already been done now.
The text was updated successfully, but these errors were encountered: