i think this is safer? plus gitignore

This commit is contained in:
tavo-wasd 2023-07-02 22:46:35 -06:00
parent 0d10b0d48d
commit d18c9766f9
3 changed files with 11 additions and 3 deletions

9
.gitignore vendored
View file

@ -125,3 +125,12 @@ chromium/
okularrc okularrc
plasmanotifyrc plasmanotifyrc
arkrc arkrc
emaildefaults
kmenueditrc
ksplashrc
plasma.emojierrc
plasmawindowed-appletsrc
plasmawindowedrc
sddmthemeinstallerrc
signond/
torbrowser/

View file

@ -9,5 +9,4 @@ password=$(find ~/.password-store/ -type f -name '*.gpg' |
[ -z "$password" ] && exit [ -z "$password" ] && exit
# If chosen, use xdotool to type it # If chosen, use xdotool to type it
pass=$(pass show "$password" | head -1) xdotool type "$(pass $password | head -1)" && [ -e /usr/bin/notify-send ] && notify-send " $password" "Successfully decrypted"
xdotool type "$pass" && [ -e /usr/bin/notify-send ] && notify-send " $password" "Successfully decrypted"

View file

@ -9,4 +9,4 @@ password=$(find ~/.password-store/ -type f -name '*.gpg' |
[ -z "$password" ] && exit [ -z "$password" ] && exit
# If chosen, copy to clipboard, and notify # If chosen, copy to clipboard, and notify
pass show "$password" pass "$password"