summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmpass
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-01-31 11:46:19 +0100
committerJoe <rrbo@proton.me>2023-01-31 11:46:19 +0100
commit7eabc900314cd93042f78123fe12ad2771050333 (patch)
treeb3f6129c0d01a403be68fb5ff156a21204b00ea4 /.local/bin/dmpass
parentup (diff)
downloaddotfiles-bsd-7eabc900314cd93042f78123fe12ad2771050333.tar.gz
dotfiles-bsd-7eabc900314cd93042f78123fe12ad2771050333.tar.bz2
dotfiles-bsd-7eabc900314cd93042f78123fe12ad2771050333.tar.xz
dotfiles-bsd-7eabc900314cd93042f78123fe12ad2771050333.tar.zst
dotfiles-bsd-7eabc900314cd93042f78123fe12ad2771050333.zip
Pop update
Diffstat (limited to '')
-rwxr-xr-x.local/bin/dmpass6
1 files changed, 4 insertions, 2 deletions
diff --git a/.local/bin/dmpass b/.local/bin/dmpass
index 11725c7..6836d41 100755
--- a/.local/bin/dmpass
+++ b/.local/bin/dmpass
@@ -23,13 +23,15 @@ password=$(printf "%s\n" "${password_files}" | "$dmenu" -i -l 15 -m 0)
[ -n "$password" ] || exit
+p="$(pass show "$password")"
+
if [ $full -eq 1 ]; then
id=$(printf "%s" "$password" | sed 's/.*___//')
printf "%s\n" $id | { IFS= read -r pass; printf %s "$id"; } | $xdotool
xdotool key Tab
- pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool
+ printf "%s\n" "$p" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool
xdotool key Return
exit
fi
-pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool
+printf "%s\n" "$p" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool