I am running an Arch Linux system with i3 window manager. Let's say I am typing on a GUI editor and I want to insert text with the middle click button of the mouse exactly where I am typing. The idea is after pressing the keybinding the pointer will be place at the input caret and then I can just click the middle button to paste the text.I know that xdotool can get the coordinates of the pointer (mouse), but what I want is to get the coordinates of the text input caret, so then I can use xdotool to put that same coordinates for the mouse pointer.
How to get the mouse pointer where the input caret is?
xorg;mouse;cursor