ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.52k stars 81 forks source link

inaccurate key stroke replication #259

Open iamkarthikbk opened 1 week ago

iamkarthikbk commented 1 week ago

Hi. I want to use copy/paste on my (Linux) terminal with super+c instead of the default ctrl+shift+c. this is what I am doing in my Settings>Keyboard>Shortcuts>Custom Shortcuts:

bash -c 'echo passwd | sudo -S ydotool key ctrl+shift+c 2> /dev/null'

it works sometimes, but the other times it just sends a ^C. I believe that this is an inaccurate replication of the keystrokes i sent as input. Can someone please help me understand this issue ? Is there a better way to do this?