Files
tldr/pages.zh/linux/wtype.md

505 B
Raw Permalink Blame History

wtype

在Wayland上模拟键盘输入类似于X11的xdotool type。 另见:ydotool。 更多信息:https://github.com/atx/wtype

  • 模拟输入文本:

wtype "{{Hello World}}"

  • 输入特定的按键:

wtype -k {{Left}}

  • 按下一个修饰键:

wtype -M {{shift|ctrl|...}}

  • 释放一个修饰键:

wtype -m {{ctrl}}

  • 在按键之间等待(以毫秒为单位):

wtype -d {{500}} -- "{{text}}"

  • stdin读取文本:

echo "{{text}}" | wtype -