https://github.com/revathskumar/rofi-totp
A rofi plugin for Two-Factors Authentication
https://github.com/revathskumar/rofi-totp
google-authenticator rust totp two-factor-authentication
Last synced: about 1 year ago
JSON representation
A rofi plugin for Two-Factors Authentication
- Host: GitHub
- URL: https://github.com/revathskumar/rofi-totp
- Owner: revathskumar
- License: mit
- Created: 2018-11-21T21:45:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T13:26:55.000Z (over 2 years ago)
- Last Synced: 2025-04-12T16:14:47.030Z (about 1 year ago)
- Topics: google-authenticator, rust, totp, two-factor-authentication
- Language: Rust
- Homepage:
- Size: 42 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: License
Awesome Lists containing this project
README
# 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](https://github.com/moul/alfred-workflow-gauth#installation)
Create file named `.gauth` in your home directory and add apps in the format
```ini
[google - bob@gmail.com]
secret=xxxxxxxxxxxxxxxxxx
[evernote - robert]
secret=yyyyyyyyyyyyyyyyyy
```
#### YAML config
Create file named `2fa.yml` in `~/.config/rofi-totp` and add apps in the format
```yml
apps:
- label: Google
secret: NUYJ2UDBUNZIQGDE
- label: Amazon
secret: NUYJ2UDBUNZIQGDF
- label: Slack
secret: NUYJ2UDBUNZIQGDG
```
### Installation
Download executable from [releases](https://github.com/revathskumar/rofi-totp/releases/latest) and keep it in you `$PATH`
By default search will be case insensitive from version `0.3.1`. To toggle, case sensitivity use `grave` key. Normally (`).
### Development
```sh
git clone https://github.com/revathskumar/rofi-totp
cd rofi-totp/
cargo install
RUST_BACKTRACE=1 cargo run
```
### Release
```sh
cargo build --release
```
## License
Please see [License](https://github.com/revathskumar/rofi-totp/blob/master/License)