Giter Site home page Giter Site logo

rbuchberger / rbw-menu Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 47 KB

Teeny Tiny GUI menu for rbw (Unofficial Bitwarden CLI)

License: GNU General Public License v3.0

Makefile 20.30% Shell 79.70%
bitwarden bitwarden-cli password-manager rbw swaywm wofi

rbw-menu's Introduction

RBW Menu

This script allows for interactively getting credentials from rbw, probably triggered via window-manager keybinding.

Roadmap

This does exactly what I need; I don't plan to change much.

Dependencies

  • rbw
  • jq - JSON parser
  • wofi - Optional menu GUI. Trivial to replace with dmenu, bemenu, fzf, or whatever else.

Installation

For all methods:

  1. Look over the source code.
  2. Install and set up rbw

From Source

  1. Install dependencies
  2. clone this repo
  3. # make install

Packages

(If you package it somewhere else, feel free to submit a PR adding it to this list.)

Usage

  • Show menu, print username for selected item to stdout: $ rbw-menu
  • Show menu, copy password for selected item to clipboard: $ rbw-menu password | wl-copy
  • Show menu, copy OTP for selected item to clipboard: $ rbw-menu code | wl-copy
  • Use a different picker: RBW_MENU_COMMAND="fzf" rbw-menu

I use these scripts with sway, though they'll work with anything. Relevant part of my config:

bindsym $mod+p exec rbw-menu password | wl-copy
bindsym $mod+u exec rbw-menu username | wl-copy
bindsym $mod+o exec rbw-menu code | wl-copy

Using a different menu

By default, we use wofi. To change this, set the RBW_MENU_COMMAND environment variable to anything which can accept a list from STDIN, and return a single line from that list to STDOUT.

Releases

  • 1.0 - Initial release
  • 1.1 - Remove bespoke OTP support, use rbw code instead
  • 1.2 - Check for and handle locked vault
  • 1.3 - Remove undocumented bash dependency; rewrite script to be POSIX sh compliant

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.