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.

62 lines
2.5 KiB

6 years ago
6 years ago
6 years ago
6 years ago
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. The DMENU_PATH environment variable can be used to point to an alternative dmenu implementation. Defaults to 'dmenu'.
  12. Options:
  13. --bw-list-args Arbitrary arguments to pass to bitwarden's 'list' command
  14. Defaults to nothing.
  15. --dmenu-args Sets arbitrary arguments to pass to dmenu
  16. Defaults to nothing.
  17. --dmenu-pswd-args Sets arbitrary arguments to pass to the dmenu password prompt
  18. Defaults to nothing.
  19. --clear-clipboard Number of seconds to keep selected field in the clipboard.
  20. Defaults to 15s.
  21. --session-timeout Number of seconds after an unlock that the menu can be accessed
  22. without providing a password again. Defaults to 0s.
  23. --sync-vault-after Number of seconds allowable between last bitwarden sync and
  24. current time. Defaults to 0s.
  25. --on-error Arbitrary command to run if the program fails. The thrown error
  26. is piped to the given command. Defaults to none.
  27. --stdout Prints the password and username to stdout
  28. --debug Show extra logs useful for debugging.
  29. --debug-unsafe Show debug logs WITHOUT obfuscating your sensitive info. Do not share!
  30. ```
  31. By default, this program runs at its most secure. No session is stored for any time period, the vault is updated
  32. every time it is used, and the clipboard is cleared every 15 seconds. In reality, you may want something a
  33. little more lenient. Here is the command I use in my personal i3wm config.
  34. ```bash
  35. bitwarden-dmenu --dmenu-args '-i' --clear-clipboard 30 --session-timeout 100 --sync-vault-after 3600 --on-error 'xargs notify-send --urgency=low'
  36. ```
  37. `bitwarden-dmenu` will prompt for a login if you are logged out.
  38. ## Installation
  39. ```bash
  40. npm i -g bitwarden-dmenu
  41. ```
  42. ## Depends On
  43. [dmenu](https://tools.suckless.org/dmenu/)
  44. ## Credits
  45. Inspired by the (now) deprecated [keepass-dmenu](https://github.com/gustavnikolaj/keepass-dmenu)