dmenu for bitwarden-cli
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.8 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. # bitwarden-dmenu
  2. [![node](https://img.shields.io/node/v/bitwarden-dmenu.svg)](http://npmjs.com/package/bitwarden-dmenu)
  3. [![GitHub](https://img.shields.io/github/license/andykais/bitwarden-dmenu.svg)](https://github.com/andykais/bitwarden-dmenu/blob/master/LICENSE)
  4. dmenu for [bitwarden](https://bitwarden.com/) which can copy usernames, passwords, and various fields to your
  5. clipboard.
  6. ## Usage
  7. ```
  8. $ bitwarden-dmenu --help
  9. Usage: bitwarden-dmenu [options]
  10. Options:
  11. --clear-clipboard Number of seconds to keep selected field in the clipboard.
  12. Defaults to 15s.
  13. --session-timeout Number of seconds after an unlock that the menu can be accessed
  14. without providing a password again. Defaults to 0s.
  15. --sync-vault-after Number of seconds allowable between last bitwarden sync and
  16. current time. Defaults to 0s.
  17. --on-error Arbitrary command to run if the program fails. The thrown error
  18. is piped to the given command. Defaults to none.
  19. ```
  20. By default, this program runs at its most secure. No session is stored for any time period, the vault is updated
  21. every time it is used, and the clipboard is cleared every 15 seconds. In reality, you may want something a
  22. little more lenient. Here is the command I use in my personal i3wm config.
  23. ```bash
  24. bitwarden-dmenu --clear-clipboard 30 --session-timeout 100 --sync-vault-after 3600 --on-error 'xargs notify-send --urgency=low'
  25. ```
  26. ## Installation
  27. ```bash
  28. # login with bitwarden-cli once before using bitwarden-dmenu
  29. bw login
  30. # install the cli
  31. npm i -g bitwarden-dmenu
  32. ```
  33. ## Depends on
  34. - [dmenu](https://tools.suckless.org/dmenu/)
  35. - [bitwarden-cli](https://help.bitwarden.com/article/cli/)
  36. ## Credits
  37. Inspired by the no longer maintained [keepass-dmenu](https://github.com/gustavnikolaj/keepass-dmenu)