diff options
| author | jdlugosz963 <jdlugosz963@gmail.com> | 2024-04-26 18:21:56 +0200 | 
|---|---|---|
| committer | jdlugosz963 <jdlugosz963@gmail.com> | 2024-04-27 18:20:11 +0200 | 
| commit | 73af89d935df5a8166114c9257f9f247f29850bf (patch) | |
| tree | c8addfe86575b030ca5a61644dbc77adb8f63c43 /.bin/oath | |
| parent | 9ca1ae3ceca5944765af94514e75a96195de5716 (diff) | |
| download | dotfiles-73af89d935df5a8166114c9257f9f247f29850bf.tar.gz dotfiles-73af89d935df5a8166114c9257f9f247f29850bf.zip  | |
Migrate from stumpwm to sway and from manifests to home-services.
Diffstat (limited to '.bin/oath')
| -rwxr-xr-x | .bin/oath | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/.bin/oath b/.bin/oath new file mode 100755 index 0000000..7444993 --- /dev/null +++ b/.bin/oath  | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if [[ $1 ]]; then | ||
| 4 | PASS=$(oathtool -b --totp $(pass show "oath/$1")) | ||
| 5 | printf $PASS | wl-copy | ||
| 6 | echo "pass: $PASS" | ||
| 7 | echo "Password should be in your clipboard!" | ||
| 8 | else | ||
| 9 | echo "Usage: oath <pass>" | ||
| 10 | echo "Available pass:" | ||
| 11 | pass oath | ||
| 12 | fi | ||
| 13 | |||
| 14 | |||
