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

Feature Request - Ability to paste strings #35

Closed
Amon-X opened this issue Jul 14, 2022 · 7 comments
Closed

Feature Request - Ability to paste strings #35

Amon-X opened this issue Jul 14, 2022 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@Amon-X
Copy link

Amon-X commented Jul 14, 2022

Please add the ability to paste strings instead of having to add each character individually. Something similar to ydotool type 'Sentence to be type.'

@zocker-160 zocker-160 added the enhancement New feature or request label Jul 14, 2022
@zocker-160 zocker-160 added this to the v1.0 milestone Jul 14, 2022
@zocker-160
Copy link
Owner

thanks for this suggestion, I will look into it.

@zocker-160
Copy link
Owner

zocker-160 commented Aug 4, 2022

Alright so I did think about this for a while and I am hesitant to implement this, because I would need to add a new button with a new implementation of something that is already possible using the command field like this:

Screenshot_20220804_231104

@Amon-X
Copy link
Author

Amon-X commented Aug 4, 2022

I only created this request at your suggestion (reddit pms). That xdotool type is a far more elegant solution to what I was using. Thank you for that. The command I am using is /bin/bash -c 'echo -n "some crazy text!!!" | xsel && xdotool click 2' which pastes all the text at once but takes over the middle mouse click.

@zocker-160
Copy link
Owner

zocker-160 commented Aug 4, 2022

I only created this request at your suggestion (reddit pms)

Yes and I thank you for doing that, because you are not the only one requesting this.

So I will keep the issue open for now, it is not off the table, but I do dislike adding xdotool / ydotool as a dependency of keybard-center just for this.

@Amon-X
Copy link
Author

Amon-X commented Aug 5, 2022

What about capturing multiple/a series of keys at once instead of just a single key? Would that be a way of doing it without adding dependencies?

@zocker-160
Copy link
Owner

agreed, that is a possibility, I will keep that in mind

@zocker-160
Copy link
Owner

So I finally found the time to look into this again and decided to not implement this, as there are way better tools out there that can achieve the same (and more).

The main reason is that Wayland sadly makes things very complicated, since there is no equivalent to xdotool. Any other replacement uses uinput Kernel module, which means you need a background service running (or be happy with 1+ seconds of lag).

TL;DR:

  • if you are on X11, use xdotool type "your string"
  • if you are on Wayland, use any of the alternatives, the most common are:

As for the input recording, that is out of scope for now, since I would need to introduce a completely new window for something that is already kinda possible to do with the manual delays.

@zocker-160 zocker-160 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2023
@zocker-160 zocker-160 pinned this issue Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants