-
Notifications
You must be signed in to change notification settings - Fork 139
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
Sxhkd + Xdotool key not working because of keyboard grab #86
Comments
should work. It doesn't on my machine, but it should. I think this might be a problem with xdotool. |
jordansissel/xdotool#105 is somewhat related. This happens even if the key isn't a modifier (e.g. |
The Or maybe it's another problem, can't remember. Bu I remember that I tried it and it didn't solve the problem. |
Any progress with that? |
I use
But that suffers the same problem as A workaround is to send an extra Alt press, to counteract our final Alt press:
Using this, I do occasionally see the menu bar flicker in Firefox, but it's mostly ok. Another issue is that the binds above only work properly for the left Alt key. To really solve this, I think we would need a layer higher up in X, which doesn't pass any keystrokes down to the applications until we have decided what we want to send. (So in this case, the application would never see the Alt key being pressed or released. It would only receive an End key event.) (Ideally we would also be able to send different strokes depending on the focused application.) Please let me know if you find such a thing! Edit: The approach taken by kinto is to pro-actively remap the keyboard when different applications are focused. The remapping means that the original keystroke is never seen by the application receiving the keystroke. Note that kinto's goal is to make a PC keyboard feel like a Mac keyboard, which might not be your goal. |
I would also be interested in such a solution |
xdotool and sxhkd seem to have a raft of incompatibilities. Getting them to play more nicely together (esp so that xdotool can retrigger sxhkd) would be very useful for working around sxhkd's foibles. |
@BenoitAverty Did you ever find a solution to this? This worked for me:
It's based on this answer: https://askubuntu.com/a/1136052/44640 I'm hoping one day I will get a programmable keyboard (QMK firmware compatible hopefully) and not have to deal with X11 and key daemons all together. |
if you're wondering about the |
as per the syntax, |
I'm think my problem might be related.. The following works:
but if I try with
I've tried the I's worth noting that I have bindings using Any idea?? |
I don't have much experience, but I was doing something similar and adding
Might worth a shot |
It didn't work.
But that's OK cause I've moved to using the native qmk mouse control in my
keyboard.
|
I was trying to remap Print to menu key using:
Which wasn't working (but typing the command in terminal works) Adding sleep fixed the problem for me:
|
Hello,
I am trying to bind the alt+right / left combination to End/Home key. Here's what I first tried:
However, this doesn't work, and I'm guessing it's because sxhkd captures the keyboard when the combination is pressed, and thus the End / Home key are not sent properly to the active window.
Here's my workaround:
This works, but causes weird/unintuitive behaviour because the keys are released even though they're phisycally pressed on my keyboard. Which means, for example, that if I want to press Home then End, I have to press alt+left, then release alt before pressing alt+right.
Is there a way to force sxhkd to release the keyboard as soon as a key combination is matched? Or another workaround?
What I also tried :
But this is even worse because when I do alt+right then release, it's as if I typed End then Alt. This makes my hidden menus pop up for example.
Thanks in advance.
The text was updated successfully, but these errors were encountered: