ydotool icon indicating copy to clipboard operation
ydotool copied to clipboard

typing special characters

Open doubleddav opened this issue 8 months ago • 7 comments

I've been using ydotool with wl-paste as a way to type the contents of the clipboard, but this doesn't work for characters like \ or $

eg, run the following

ydotool type "\"

The problem isn't wl-paste, the output works as expected.

doubleddav avatar Apr 30 '25 07:04 doubleddav

bump, im also encountering this, and the program is entirely useless till this is fixed. this is basic functionality, how is it not already implemented?

catfromplan9 avatar Sep 28 '25 18:09 catfromplan9

ydotool is just emulating your keyboard. Whenever your keyboard can type these chars directly, you can do it with ydotool, otherwise you'll need to emualte how you type them manually.

ClassicOldSong avatar Sep 28 '25 18:09 ClassicOldSong

If it helps, I've since switched to dotool (https://git.sr.ht/~geb/dotool) instead. Works very well, hasn't interpreted the clipboard once.

You might need to compile it if you're not using the supported distros, but it's not hard

doubleddav avatar Sep 29 '25 10:09 doubleddav

If it helps, I've since switched to dotool (https://git.sr.ht/~geb/dotool) instead. Works very well, hasn't interpreted the clipboard once.

You might need to compile it if you're not using the supported distros, but it's not hard

Can this do emojis?

catfromplan9 avatar Sep 29 '25 12:09 catfromplan9

ydotool is just emulating your keyboard. Whenever your keyboard can type these chars directly, you can do it with ydotool, otherwise you'll need to emualte how you type them manually.

Very disappointed, xdotool did not have these problems, and so I used it in my rofi emoji picker

catfromplan9 avatar Sep 29 '25 12:09 catfromplan9

You should be disappointed over your keyboard, it can't type any emoji.

ClassicOldSong avatar Sep 29 '25 12:09 ClassicOldSong

If you do a little more research, you'll know that xdotool works in a completely different way, it sends input events directly to the window interfacing the X window API, which is tightly bond to X server, while ydotool and dotool all emulate keyboard presses.

ClassicOldSong avatar Sep 29 '25 12:09 ClassicOldSong