summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmpass
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2023-01-31 21:13:10 +0100
committerJoe <bousset.rudy@gmail.com>2023-01-31 21:13:10 +0100
commitae83bf5ca77c4cb3b6f219456e92d4c5e0f8fc9f (patch)
tree7341031ed0f84167350e95f48397761ef6544ad9 /.local/bin/dmpass
parentfbsd merge (diff)
parentup (diff)
downloaddotfiles-bsd-ae83bf5ca77c4cb3b6f219456e92d4c5e0f8fc9f.tar.gz
dotfiles-bsd-ae83bf5ca77c4cb3b6f219456e92d4c5e0f8fc9f.tar.bz2
dotfiles-bsd-ae83bf5ca77c4cb3b6f219456e92d4c5e0f8fc9f.tar.xz
dotfiles-bsd-ae83bf5ca77c4cb3b6f219456e92d4c5e0f8fc9f.tar.zst
dotfiles-bsd-ae83bf5ca77c4cb3b6f219456e92d4c5e0f8fc9f.zip
Merge branch 'master' of gitjoe.xyz:dotfiles-bsd
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