From 9e82c96713989a7565eadac505b36e3dbe91cd5a Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 07:56:17 -0400 Subject: Added, removed, renamed scripts --- .local/bin/getpass | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.local/bin/getpass') diff --git a/.local/bin/getpass b/.local/bin/getpass index bfa344f..1f9b3b5 100755 --- a/.local/bin/getpass +++ b/.local/bin/getpass @@ -3,13 +3,12 @@ pb=$PASSWORD_STORE_DIR [ -z "$PASSWORD_STORE_CLIP_TIME" ] && ct=45 || ct=$PASSWORD_STORE_CLIP_TIME chars=$(echo $pb | wc -c) -accts=$(find $pb -type f -name "*.gpg" | cut -c 2- | \ - grep -v ".*-OTP.gpg\|.*-2farecovery.gpg" | cut -c $chars- | \ +accts=$(find $pb -type f -name "*.gpg" | cut -c 2- | cut -c $chars- | \ rev | cut -c 5- | rev) acct="$(echo "$accts" | dmenu)" [ "$acct" = "" ] && exit -pass show $acct | xclip -r -selection "primary" \ - && pass show $acct | xclip -r -selection "clipboard" \ +pass show $acct | head -1 | xclip -r -selection "primary" \ + && pass show $acct | head -1 | xclip -r -selection "clipboard" \ && notify-send "Password Copied to Clipboard" \ && sleep $ct \ && pkill xclip -- cgit v1.2.3