Giter Site home page Giter Site logo

wofi-pass's Introduction

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.

wofi-pass's People

Contributors

schmidtandreas avatar tinfoilsubmarine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wofi-pass's Issues

First letter of password left out on Chromium-based Browsers on OpenSUSE MicroOS

I love Wofi-pass, but I'm having a little problem in Brave and I've had the same issue in other Chromium-based browsers.

When I use wofi-pass -t to put in the password, it will leave out the first letter of the password.

I don't have this problem when using wofi-pass without the -t option and just pasting it in. It's a slight inconvenience, but a workaround for now nonetheless.

-s option no longer working

Hey there,
It seems like the -s option no longer works as expected. It rather always prints the first line even if there are others.
Please fix this!
Thanks!

Add keepass-like autotype

Hey there,
I really like this project, but It's proven to be pretty tedious to open wofi, search the entry and select the value of a stored login. I would love to see an autotype feature so I only have to select an entry and it automatically reads an autotype field to enter the credentials.
I would prefer to have a keepass-like autotype - I think enter, tab, delay and a field are be the most important values for such a feature.
Thanks!

Support for username in filename

Thank you for this great tool, I think that's exactly what I want as the rofi-pass ydotool branch also has some issues.
But for me there is one thing missing: I have the username as file name and only a password field in the file. So either I have to script something to also write the user name into the files or change all my other pass clients.
I tried to change your tool to also support user names as file names but I didn't succeed. Maybe you know how to add an option for file name based user names?

Make Search case insensitive

Hey there,
I noticed that the search is not case-insensitive, meaning if you type "Test", it will not be able to find "test".
Can you fix this?
Thanks!

UX improvements

Hey there,
Thanks for developing this script. No major hiccups for me thus far, though i would like to see a better user experience.
Two major things that i have noticed:

  • There is no proper handling in case pass fails
  • There is no feedback to the user to indicate if the password was successfully copied to clipboard

I forked the project and started work on implementing error and success handling trough notify-send, although i had some difficulties implementing this due to the many different pass calls and me not fully understanding the script. I will push my commits to jeidnx/wofi-pass and would really appreciate some advice / help there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.