Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Rofi frontend for Bitwarden

License

NotificationsYou must be signed in to change notification settings

fdw/rofi-rbw

Repository files navigation

A rofi frontend for Bitwarden

Based on the alternativeBitwarden CLIrbw and inspired byrofi-pass,rbw-rofi is a simplistic password typer/copier usingrofi andwofi.

Screenshot of rofi-rbwScreenshot of a rofi-rbw entry menu

Features

  • Autotype password or username (Enter/Alt+3 andAlt+2, respectively)
  • Autotype username and password (with atab character in between) withAlt+1 (and copy TOTP to clipboard)
  • Configure autotyping either as a keybinding or by having a_autotype field in your credential
  • Copy username, password or TOTP to the clipboard (Alt+u,Alt+p andAlt+t, respectively)
  • Show an autotype menu with all fields

Usage

First, you need to configurerbw. See its documentation for that.Then, you can startrofi-rbw. It isnot available as a rofi mode.

Configuration

You can configurerofi-rbw either with cli arguments or with a config file called$XDG_CONFIG_HOME/rofi-rbw.rc. In the file, use the long option names without double dashes.

Options

long optionshort optionpossible valuesdescription
--action-atype (default),copy,printChoose whatrofi-rbw should do.
--target-tusername,password,notes,totp (or any custom field)Choose which components of the selected entry are interesting. Can be passed multiple times to type/copy/print several components. Default isusername andpassword.
--prompt-rany stringDefine the text of the prompt.
--keybindingsDefine custom keybindings in the format<shortcut>:<action>:<target>, for exampleAlt+x:copy:username. Multiple keybindings can be concatenated with,; multiple targets for one shortcut can be concatenated with:. Note thatwofi doesn't support keybindings.
--menu-keybindingsDefine custom keybindings for the target menu in the format<shortcut>:<action>, similar to--keybindings. Note thatwofi doesn't support keybindings.
--no-cacheDisable the automatic frecency cache. It contains sha1-hashes of the selected entries and how often they were used.
--clear-afterinteger number >= 0 (default is0)Limit the duration in seconds passwords stay in your clipboard (unless overwritten). When set to 0, passwords will be kept indefinitely.
--typing-key-delaydelay in millisecondsSet a delay between key presses when typing.0 by default, but that may result in problems.
--no-helpDon't show the help message about the available shortcuts.
--no-folderDon't show the entry's folder in the list.
--selector-argsDefine arguments that will be passed through torofi orwofi.
Please note that you need to specify it as--selector-args="<args>" or--selector-args " <args>" because of abug in argparse
--selectorrofi,wofiShow the selection dialog with this application. Chosen automatically by default.
--clipboarderxsel,xclip,wl-copyAccess the clipboard with this application. Chosen automatically by default.
--typerxdotool,wtype,ydotool,dotoolType the characters using this application. Chosen automatically by default.
--use-notify-sendSend desktop notification after copying TOTP.

Autotyping

By default,Alt+1 will type username and password, separated with atab character. However, you can change this behavior by defining your own keybinding (if your selector supports this). For example,Alt+1:type:username:enter:delay:password:enter will type the username,enter, wait for a second and then type the password andenter again.

This sequence can also be defined as a field_autotype on each credential.

Installation

From distribution repositories

Packaging status

From PyPI

rofi-rbw is onPyPI. You can install it withpip install --user rofi-rbw (orsudo pip install rofi-rbw).

Manually

Download the wheel file from releases and install it withsudo pip install $filename (or you can usepip install --user $filename to only install it for the local user).Note that it needsconfigargparse to work.

Dependencies

You also need:

  • Python 3.7 or higher
  • rofi orwofi
  • Something to programmatically type characters into other applications. Depending on your display server, it'sxdotool,wtype,ydotool ordotool.
  • Something to copy text to the clipboard. Again, depending on the display server, you wantxclip,xsel orwl-copy.
  • Optionallylibnotify to providenotify-send needed for--use-notify-send

[8]ページ先頭

©2009-2025 Movatter.jp