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.
wofi-pass/README.md

45 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2023-07-10 12:40:29 -04:00
# This is no longer actively maintained. Consider switching to a fork such as [schmidtandreas/wofi-pass](https://github.com/schmidtandreas/wofi-pass).
2023-02-15 17:15:02 -05:00
2020-03-27 22:55:38 -04:00
# wofi-pass
2020-03-30 20:26:11 -04:00
```
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.
2020-03-30 20:26:11 -04:00
```
2020-03-27 22:55:38 -04:00
Since `wofi` isn't a drop-in replacement for `rofi`, I couldn't use
[rofi-pass](https://github.com/carnager/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](https://hg.sr.ht/~scoopta/wofi) and
2021-07-13 21:13:36 -04:00
[wtype](https://github.com/atx/wtype) to provide a completely
2020-03-27 22:55:38 -04:00
Wayland-native way to conveniently use [pass](https://www.passwordstore.org/).
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](https://github.com/tadfisher/pass-otp) is
installed if an `otpauth://...` string is present in a password file.
2020-03-30 20:26:11 -04:00
The script assumes password files are formatted like the following:
2020-03-27 22:55:38 -04:00
```
Th3Gr3at3stPassw0rd
username: JohnDoe
email: john@example.com
otpauth://totp/example?secret=ABCDCBABCDCBABCD
pin: 1234
```
2020-03-30 20:26:11 -04:00
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`.