dotfiles/gopass/README.md
2020-05-15 19:08:52 +02:00

3.4 KiB

gopass

gopass - command-line password manager, pass compatible, git by default

The gopass module tries to make interacting with the basic necessities of gopass painless and quick -- it is focused on accessing secrets, and quickly auto-filling forms or copying secrets to the clipboard. It relies on the default gopass auto-deleting clipping, so your secrets are automatically removed after a short while.

The configuration of gopass is relatively standard, it tries to follow XDG_specifications, putting the default pass store into ~/.local/share.

rofi-gopass

To make accessing secrets easy, it uses the rofi-gopass script, which creates a small rofi menu displaying all your secrets (names only), and from which you have quick access to copy, fill, or open the individual entries. An example of the menu in action:

rofi-gopass demonstration

There are several keybindings available, to either fill or copy to clipboard the username, password, or open the full view to an individual entry. For every send to clipboard action, the clipboard will be automatically cleared after the time specified in your gopass settings.

keybinding function
Return Auto-fill username & password
Alt+Return Open individual entry
Alt+u Auto-fill username
Alt+p Auto-fill password
Ctrl+Alt+u Send username to clipboard
Ctrl+Alt+p Send password to clipboard
Return Auto-fill selected field (from opened entry)
Alt+Return Send selected field to clipboard (from opened entry)
Alt+BackSpace Close individual entry, return to overview

These keys can be reconfigured at the top of the script file.

For auto-filling to work, the username field will (by default) have to be highlighted.

Additional configuration at the top of the script file:

  • BACKEND :sets the auto-filling tool used, only tested with xdotool currently.

  • AUTOENTRY_CHAIN :sets the chain of keys that should be sent to auto-fill an entry. Can use the following special fields: :tab, :space, :return, username, password.

    The default chain is username :tab password, which will enter the username, simulate the tab-key to switch from the username to the password field, and enter the password. This can be changed to suit your needs. To, for example, log in fully automatically at the end of the sequence, change it to username :tab password :return, and there will be no further user input for the login required.

  • AUTOENTRY_DELAY :sets the time for xdotool to wait in-between simulated actions, if some letters appear missing or the fields are not switched between quickly enough, it can usually be fixed by increasing this delay (though typing will also take longer)

  • GOPASS_USERNAME_FIELD :sets the name of the field in gopass secrets which contain the username. Usually, the default setting should be fine (it will look for user, then username, then login) but custom field names can be supplied. If multiple field names are given, it will use the first supplied field name a secret contains.