commit df5f9c0103b80be53248292f5a55fd95915b65c1 parent 311291cd3e4f5ebc808b06da0309b613b3105e4b Author: Sven Möller <sven-moeller@outlook.de> Date: Sun, 6 Feb 2022 16:50:45 +0100 Add script Diffstat:
A | bin/.local/bin/passfill | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/bin/.local/bin/passfill b/bin/.local/bin/passfill @@ -0,0 +1,8 @@ +#!/bin/sh + +account="$(gopass ls --flat | dmenu | xargs -r gopass find | head -n1)" +entry="$(gopass show "$account")" +echo "$entry" | grep "login:" | cut -d' ' -f2 | xclip +echo "$entry" | grep "url:" | cut -d' ' -f2 | xargs -r qutebrowser +gopass -c "$account" +gopass otp "$account" | xargs -r notify-send -t 60000