Hacker News new | ask | show | jobs
by Isognoviastoma 1900 days ago
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.

2 comments

Interesting. I just have a keyboard shortcut in i3 that uses dmenu to let you select a credential. Very handy as I have multiple accounts for some sites/apps. Plus, the browser extension has its own keyboard shortcut.
Ohhh, now that's a really clever way to do it! Never ceases to amaze me how flexible xdotool can be.