It provides a blocklet that shows your favourite’s site/application otp.
$HOME/.config/i3blocks/blocklets)$HOME/.config/i3blocks/config)Here’s a sample configuration, ${BLOCKLETS_DIR} has to be set in i3 configuration or env:
[otp_blocklet]
command = ${BLOCKLETS_DIR}/otp_blocklet
interval = 1
fg_color = #ff0000
bg_color =
label = 🎄
internal/ contains the blocklet’s core OTP logic and runtime helper packages.
internal/onetimepass
PassCode, the OTP result object with code text, expiration, remaining lifetime, and error state.internal/provider
OtpProvider, which generates and refreshes TOTP codes from a configured key.internal/render
internal/secretmanager
~) and JSON persistence for secret storage.MIT