Skip to content
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

Suggested feature: Toggle groups of hotkeys via interrupt #312

Open
morganwl opened this issue Sep 23, 2023 · 0 comments
Open

Suggested feature: Toggle groups of hotkeys via interrupt #312

morganwl opened this issue Sep 23, 2023 · 0 comments

Comments

@morganwl
Copy link

I'm not sure if this project is still open to and accepting pull requests, but I had a feature that I plan to attempt for my own use case, and wanted to see if there was broader interest / input before attempting implementation.

I would like to be able to group hotkeys in the configuration file, and use a USR signal (with attached message) to toggle a group. My use case is integrating window navigation with vim, similar to the functionality of vim-tmux-navigator when working in a terminal. Currently, I capture the keystroke in sxhkd, and, if vim is focused, trigger a vim function, otherwise trigger a wm action. I'd like to skip the "check if vim is focused step", and allow vim to capture and handle the keystrokes directly.

The simplest implementation I have considered would be to add a boolean flag to the hotkey structure, and return NULL if a hotkey is found but marked disabled. I have also considered ungrabbing the hotkeys from xcb altogether.

Would there be broader interest? Are there any thoughts or suggestions? Thanks for your time in putting this program together!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant