A Wayland-native interface for conveniently using pass
This repository has been archived on 2023-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Joel Beckmeyer 8305359a9a invert cut selection to properly trim off LHS of key:value pairs 2021-01-11 16:54:52 -05:00
LICENSE Initial commit 2020-03-27 22:51:59 -04:00
README.md Update README.md 2020-11-11 09:57:39 -05:00
wofi-pass invert cut selection to properly trim off LHS of key:value pairs 2021-01-11 16:54:52 -05:00



Usage: wofi-pass [options]
	-a, --autotype	autotype whatever entry is chosen
	-h, --help	show this help message
	-s, --squash	don't show field choice if password file only contains password
	-t, --type	type the selection instead of copying to clipboard

Since wofi isn't a drop-in replacement for rofi, I couldn't use rofi-pass anymore. So, I just made a version of passmenu that accomplishes everything I needed from rofi-pass.

What does it do?

This script uses wofi and ydotool to provide a completely Wayland-native way to conveniently use pass. It provides the same search that passmenu does, but shows a second dialogue that lets the user choose which field to copy/print.

It also assumes that pass-otp is installed if an otpauth://... string is present in a password file.

The script assumes password files are formatted like the following:

username: JohnDoe
email: john@example.com
pin: 1234

Note that the password is ALWAYS on the first line.

The -s | --squash flag tells wofi-pass to "intelligently" skip the field choice dialogue when there is only a password in the file.

The -t | --type flag tells wofi-pass to type the choice instead of copying to clipboard. This also enables the autotype choice which types username :tab password.


I know this script needs some work; it was mostly hacked together in an afternoon to get the minimum functionality I needed.