summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-10-05 22:05:52 +0200
committerMarc Vertes <mvertes@free.fr>2023-10-05 22:05:52 +0200
commit84e62a27aed00d442844842fcfd4213b19d8aad4 (patch)
tree3c11c3b497cb7883e76074b8be740c8cddbd4d9d /bin
parenta364c97719ddb7158f12fe13521e98b47b431286 (diff)
update
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gauth3
-rwxr-xr-xbin/idot4
2 files changed, 2 insertions, 5 deletions
diff --git a/bin/gauth b/bin/gauth
index 0c11531..e2291dd 100755
--- a/bin/gauth
+++ b/bin/gauth
@@ -2,8 +2,9 @@
# Use backup from andOTP
#cat ~/otp_accounts.json |
+[ "$1" ] && post="grep -i $1" || post=cat
gpg -qd ~/.otp.gpg |
jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' |
while read -r l s i; do
printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")"
-done
+done | $post
diff --git a/bin/idot b/bin/idot
deleted file mode 100755
index 44387e8..0000000
--- a/bin/idot
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# dot -Gsize=9 -Nshape=box -Nstyle=rounded -Tsvg | convert -- - sixel:/dev/tty
-# dot -Gsize=9 -Nfontname=Helvetica -Tsvg | convert -- - sixel:/-dev/tty
-dot -Gsize=9 -Nfontname=Arial -Tpng | icat - /dev/tty