Skip to content
A rofi plugin for Two-Factors Authentication
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
snap
src
.editorconfig
.gitignore
CHANGELOG.md
Cargo.lock
Cargo.toml
License
README.md

README.md

rofi-totp

A rofi plugin for Two-Factors Authentication / Time-Based Authentication Token / TOTP /  Google Authenticator

From `0.2.0` we support ini format which is used by [alfred-workflow-gauth](https://github.com/moul/alfred-workflow-gauth)
but it is fully backward compatible with old `yaml` config.

Dependencies

On ubuntu

sudo apt install rofi xdotool

Setup

ini config alfred-workflow-gauth

Create file named .gauth in your home directory and add apps in the format

[google - bob@gmail.com]
secret=xxxxxxxxxxxxxxxxxx

[evernote - robert]
secret=yyyyyyyyyyyyyyyyyy

YAML config

Create file named 2fa.yml in your home directory and add apps in the format

apps:
  - label: Google
    secret: NUYJ2UDBUNZIQGDE
  - label: Amazon
    secret: NUYJ2UDBUNZIQGDF
  - label: Slack
    secret: NUYJ2UDBUNZIQGDG

Installation

Download executable from releases and keep it in you $PATH

Development

git clone https://github.com/revathskumar/rofi-totp
cd rofi-totp/
cargo install
RUST_BACKTRACE=1 cargo run

Release

cargo build --release

License

Please see License

You can’t perform that action at this time.