-
Notifications
You must be signed in to change notification settings - Fork 122
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
Switch to ydotool? #165
Comments
This would be nice as an option. It seems that ydotool doesn't have issue jordansissel/xdotool#97 for me. I have a custom layout, and even with |
Ok, I played a bit with it. A few things that instantly stick out:
If you want to try it out and fix issues, have a look here: |
See ReimuNotMoe/ydotool#5. Hopefully this can be reliably fixed.
It looks like |
Okay I tested the ydotool branch and it seems to work really well! One small change was required though, ydotool has named keys a bit differently, f.ex |
I changed those key names in the ydotool branch. Anyway, it does not help with my issues. i have a password file which has "rasi" as username and "some words as password" No clue where the "qal-config" part is coming from :) I guess it must be the "Tab" key, tried to change |
I created an AUR package of the ydotool branch |
I am an idiot. I tested the autotype stuff in a terminal and the "tab" event simply completed "rasi" to "rasqal-config" 😄 So now I can work on integrating ydotool as a config option. |
Now the delay related issue is solved by running a persistent daemon in background. For detailed explanation, you can have a look at ydotool issue #5. |
uuh, very nice, I will base the ydotool branch on that, most likely on the weekend. But don't expect this to go to master for the time being, since this is not in stable ydotool yet. |
Very nice seeing this go forward! I've been using the ydotool branch for a while now and while it's not as polished as the xdotool version, it works fine for my needs. As a side note: while ydotool works under X too, there might be reasons why some people would like to continue using rofi-pass with xdotool. What are your thoughts on going forward @carnager? A couple of options come to mind:
|
Like I said above:
I might make this automatic, aka use ydotool if available, otherwise use xdotool, but I def. want the user to be able to force one option in config. |
Oh yeah, that's even better ✌️ |
Ok, ydotool finally compiles again, but ydotoold segfaults for me. Let's see when I find the time to debug this. |
@carnager I had some permission issues after the refactoring of ydotool. Previously I had a udev rule like this: |
Running it with sudo does not help. Also my debug build that I created to dig deeper didnt crash anymore. Gotta love Heisenberg bugs. 😄 |
Ok, current master of ydotoold seems to work fine. Updated the ydotool branch with config option and ydotoold support. |
It's working :) However, it won't type special caracters such as "é", "è", or "à" (probably related to ydotool so I opened an issue here ReimuNotMoe/ydotool#22 but there is an other problem, all passwords with the caracter |
yeah, I can confirm, those characters break gopass |
What's the status of this? I have been using the ydotool branch for quite some time and I'm pretty happy with it. Unfortunately it broke on the recent update of ydotool, however, it is easily fixable (ydotool replaced the |
I just provided this change as a PR, hope it helps. |
JFI: I came across xpaste when looking at alternatives to xdotool (https://github.com/ossobv/xpaste). |
If I remember correctly you can specify the desired layout just like for every other keyboard. There should be a xdotool daemon next to all your other input devices and you can change the layout for individual devices via their identifier. |
Interesting!
The odd thing here is that it behaves different when setting another device (10, new keyboard) to "de" (only, instead of device 23): then the XTEST device does not need to be changed to layout "de" also..!? But it is also hard to tell how device specific settings get applied really, I could imagine that there's some magic with the XTEST input device, where it translates based on some things it detects, but is off there then? I've also just noticed that the output from xdotool is different based on which keyboard is used to send the command, i.e. likely the least recently used device then!? /cc @jordansissel |
I've found a workaround for the issue of using multiple keyboard layouts with xdotool: jordansissel/xdotool#150 (comment) |
Just found ydotool, which is an xdotool replacement that works under wayland. Everything seems to be working very well, so I thought this would be a great alternative for rofi-pass to use also, to make it compatible with wayland. I don't know what kind of restrictions the fact that rofi runs under xwayland represents though.
EDIT: I actually did a simple
:%s/xdotool/ydotool
on the rofi-pass bash script and it doesn't work when used over wayland native applications. Good news is, it seems to be a drop in replacement as it works over xwayland windows still. Once (if ever) rofi goes native wayland this would be a simple migration.The text was updated successfully, but these errors were encountered: