Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
/ wofi-pass Public archive

A Wayland-native interface for conveniently using pass

License

Notifications You must be signed in to change notification settings

TinfoilSubmarine/wofi-pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

This is no longer actively maintained. Consider switching to a fork such as schmidtandreas/wofi-pass.

wofi-pass

Usage: wofi-pass [options]
	-a, --autotype		autotype whatever entry is chosen
	-c, --copy [cmd]	copy to clipboard. Defaults to wl-copy if no cmd is given.
	-f, --fileisuser	use the name of the password file as username
	-h, --help		show this help message
	-s, --squash		don't show field choice if password file only contains password
	-t, --type [cmd]	type the selection instead of copying to clipboard.
				Defaults to wtype if no cmd is given.

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 wtype 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:

Th3Gr3at3stPassw0rd
username: JohnDoe
email: [email protected]
otpauth://totp/example?secret=ABCDCBABCDCBABCD
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.

About

A Wayland-native interface for conveniently using pass

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages