citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

otp (194B)


      1 #!/usr/bin/env bash
      2 
      3 res=$(< $HOME/authy dmenu -i -p 'authy' -l 7)
      4 
      5 
      6 IFS=, read -r label key site digits <<<"$res"
      7 
      8 #printf '%s %s\n' "$site" "$label" >&2
      9 oathtool -d "$digits" --totp -b "$key"