Password manager with working autotype for Hyprland/wlroots compositors

I made a different thread here about goldwarden specifically, so I guess I should make a different one to ask a more general question…

I’m looking for a password manager with autotype functionality that works under wayland and more specifically Hyprland. Does something like this exist? KeepassXC doesn’t work.

EDIT: I guess I can use something like pass, and script printing the password to console and piping it into ydotool. A proper solution would be better though

EDIT2: I modified the passmenu script a bit, here’s what has worked for me:

#!/usr/bin/env bash

shopt -s nullglob globstar

typeit=0
if [[ $1 == "--type" ]]; then
	typeit=1
	shift
fi

if [[ -n $WAYLAND_DISPLAY ]]; then
	dmenu=fzf
else
	echo "Error: No Wayland display detected" >&2
	exit 1
fi

prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )

password=$(printf '%s\n' "${password_files[@]}" | "$dmenu" "$@")

[[ -n $password ]] || exit

passecho=$(pass show "$password" | head -n 1)

[[ -n $passecho ]] || exit 1

echo "The Password will be auto-typed in 3 seconds..."
sleep 3;
echo "$passecho" | ydotool type --file -

KeepassXC supports auto-type via their companion browser extension. If that is a setup you are comfortable with; i can confirm auto-type works with Hyprland.

EDIT: sorry i was thinking off auto fill (that’s what the extension does NOT auto-type). Though it may still fit your needs.

Thanks. I know about this but it isn’t good enough because it doesn’t work outside the browser (obviously), and because there are security concerns of passwords being auto-inserted into unsafe fields. It also must communicate outside the browser sandbox which could be a problem. pass + ydotool so far is the better solution that I’ve found

1 Like