向X window程序发送字符串
#!/usr/bin/bash
text=$1
windowid=$(xdotool getwindowfocus)
sleep 0.1 && xdotool windowactivate --sync $windowid type $text参考
Last updated
#!/usr/bin/bash
text=$1
windowid=$(xdotool getwindowfocus)
sleep 0.1 && xdotool windowactivate --sync $windowid type $textLast updated