rofi-pass/README.md

76 lines
2.8 KiB
Markdown
Raw Normal View History

2015-05-22 21:56:33 +02:00
# rofi-pass
#### bash script to handle pass storages in a convenient way
2016-07-27 16:49:01 +02:00
![rofi-pass](screenshot.jpg "rofi-pass in action")
2015-05-23 06:58:55 +02:00
2015-08-24 01:09:51 +02:00
## Features:
2015-05-22 21:56:33 +02:00
2015-07-17 02:59:40 +02:00
* Open URLs of entries with hotkey
* Add new Entries to Password Storage
* Edit existing Entries
2015-12-26 22:47:36 +01:00
* Generate new passwords for entries
2015-12-26 22:53:22 +01:00
* Inline view, which can copy/type individual entries
2015-12-26 22:48:41 +01:00
* Move/Delete existing entries
2015-07-17 02:59:40 +02:00
* Support for multiple roots for password-store (e.g. separate work from private passwords)
2015-12-26 22:47:36 +01:00
* Type any field from entry
2015-05-22 21:56:33 +02:00
* Auto Type User and Password. Format of password files are expected to be like:
2016-02-23 02:10:30 +01:00
* Bookmarks mode (default: Alt+x)
2015-05-22 21:56:33 +02:00
```
foobarmysecurepassword
2015-09-13 04:04:21 +02:00
user: MyUser
url: http://my.url.foo
2015-05-22 21:56:33 +02:00
```
2015-08-24 01:09:51 +02:00
* Auto Typing of more than one field. This expects a autotype field in password file.
2015-05-22 21:56:33 +02:00
```
foobarmysecurepassword
2015-07-17 02:54:36 +02:00
---
2015-09-13 04:04:21 +02:00
user: MyUser
2015-05-22 23:47:23 +02:00
SomeField: foobar
AnotherField: barfoo
2015-09-13 04:04:21 +02:00
url: http://my.url.foo
autotype: SomeField :tab UserName :tab AnotherField :tab pass
2015-05-22 21:56:33 +02:00
```
2015-08-22 19:03:15 +02:00
The `:tab` field has a special meaning. this will hit the tab key, obviously.<br>
2015-08-22 19:01:58 +02:00
Same for `:space`, which will hit the space key, can be used to activate checkboxes.
2015-09-13 04:04:21 +02:00
In addition to those `:enter` and `:delay` are available.
2015-07-17 02:54:36 +02:00
2015-08-21 19:37:15 +02:00
* All Hotkeys are configurable in config file
2015-09-13 04:04:21 +02:00
* user, url and autotype field names are also configurable
2015-08-21 19:37:15 +02:00
2015-05-22 21:56:33 +02:00
## Requirements
* pass (http://www.passwordstore.org/)
2015-05-22 21:56:33 +02:00
* sed
2015-08-06 13:29:57 +02:00
* rofi (https://github.com/DaveDavenport/rofi)
2015-05-22 21:56:33 +02:00
* xdotool
2016-04-27 17:54:31 +02:00
* gawk
2015-05-22 21:56:33 +02:00
* bash
2015-07-17 02:59:40 +02:00
2016-07-28 11:16:45 -04:00
### BSD
* gnugrep
* gawk
## Configuration
rofi-pass may read its configuration values from `/etc/rofi-pass` and/or `$HOME/.config/rofi-pass/config`.
For an example configuration please take a look at the included `config.example` file.
2015-07-17 02:59:40 +02:00
## Extras
rofi-pass comes with a tiny helper script, which makes it easier to create new pass entries.
Just run it with
2015-07-19 20:12:01 +02:00
```
2015-08-23 14:44:31 +02:00
addpass --name "My new Site" +user "zeltak" +branch "branch" +custom "foobar" +autotype "branch :tab user :tab pass"
2015-07-19 20:12:01 +02:00
```
2015-08-21 19:19:20 +02:00
* First argument `--name` is mandatory. This will be the filename of the new password entry.
2015-08-21 19:27:18 +02:00
* Second argument can be `--root` followed by absolute path to your password-store. addpass also uses root config setting from rofi-pass config file. If both are not found, PASSWORD_STORE_DIR variable is checked. If none of the above are found, the default location `$HOME/.password-store` is used.
2015-08-21 19:19:20 +02:00
* Fieldnames are defined with `+` and the actual value is defined inside the quotations. You can add as many fields as you like
2015-07-17 02:59:40 +02:00
Also included is an import script for keepass2 databases. It's the same script that can be downloaded from the pass homepage, with some minor modifications to match rofi-pass structure.
2015-09-13 04:20:27 +02:00
## Alternative
2016-02-23 02:09:17 +01:00
jreinert has written the roughly compatible tool [autopass](https://github.com/jreinert/autopass). It has less features, but definately saner code.
Also he provided a nice little script called `passed` to change your fieldnames. [link](https://github.com/jreinert/passed)