feat: optimize ydotool text typing with fast command execution

This commit is contained in:
jahruz67
2026-05-20 17:14:02 -07:00
parent 5fcef76424
commit f7d34fff32
+5
View File
@@ -96,6 +96,11 @@ func typeLinuxTextWithYdotool(text string) error {
return err
}
fastArgs := []string{"type", "-d", "1", "--file", "-"}
if err := runLinuxInputCommand(path, fastArgs, text, linuxTextTyperTimeout(text), socketPath); err == nil {
return nil
}
return runLinuxInputCommand(path, []string{"type", "--file", "-"}, text, linuxTextTyperTimeout(text), socketPath)
}