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

Grab keys so they don't go to a focused application #38

Closed
UnsignedArduino opened this issue Feb 9, 2022 · 6 comments · Fixed by #64
Closed

Grab keys so they don't go to a focused application #38

UnsignedArduino opened this issue Feb 9, 2022 · 6 comments · Fixed by #64
Assignees
Labels
Enhancement New feature or request

Comments

@UnsignedArduino
Copy link
Contributor

what i meant is that with sxhkd the keybindings conflict
and sxhkd is given the preference (i think that's how you spell it)
so if i press alt + a when i'm focused on pcmanfm
the keybinding will work on sxhkd but not pcmanfm

Discord message

Somehow we should provide an option to swallow keys so that they don't go to a focused application / the tty.

@UnsignedArduino UnsignedArduino added the Enhancement New feature or request label Feb 9, 2022
@Shinyzenith
Copy link
Member

I still have no idea as to how I'm supposed to implement this

@Shinyzenith
Copy link
Member

run evdev::Device::grab on a device, handle keybinds as you would and if they aren't keybinds, use a virtual device ( uinput ) to send that signal instead.

@Shinyzenith
Copy link
Member

Now that we know the method this seems a lot more achievable.

@Shinyzenith
Copy link
Member

@EdenQwQ @angelofallars @vainiovano @Idlidev @UnsignedArduino @LinusBotTips anyone interested in claiming this task?

@angelofallars
Copy link
Member

@EdenQwQ @angelofallars @vainiovano @Idlidev @UnsignedArduino @LinusBotTips anyone interested in claiming this task?

Me! I don't exactly know how to implement it yet, but I will find a way regardless. 😄

@Shinyzenith
Copy link
Member

kmonad/kmonad#495 (comment) this should help @angelofallars.

@Shinyzenith Shinyzenith linked a pull request Mar 2, 2022 that will close this issue
@angelofallars angelofallars self-assigned this Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

3 participants