That's how I use pass on Linux. A key shortcut is bind to script that calls "xdotool getwindowfocus getwindowname", selects credentials set based on it, asks for master password with pinentry-qt if needed, then types with "xdotool type --file -".
It works and is better than placing password in clipboard and than "xdotool type $pass". Likely worse than proper integration with password consumer.