#!/bin/sh 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- | cut -c $chars- | \ rev | cut -c 5- | rev) acct="$(echo "$accts" | dmenu)" [ "$acct" = "" ] && exit 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