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.

53 lines
2.0 KiB

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