commit 866888d0b3e5524dfc195473e34a4a37ac1e628d parent 1c97dad753b408694d4f33728339ffe88e9c46c6 Author: tongong <tongong@gmx.net> Date: Sun, 11 Jul 2021 22:16:40 +0200 added info field to passmenu script Diffstat:
M | suckless/passmenu-plus/passmenu-plus | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/suckless/passmenu-plus/passmenu-plus b/suckless/passmenu-plus/passmenu-plus @@ -20,7 +20,7 @@ password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") if [[ $typeit -eq 0 ]]; then pass show -c "$password" 2>/dev/null else - action=$(echo -e "type password\ntype login\ntype login password" | dmenu "$@") + action=$(echo -e "type password\ntype login\ntype login password\nprint info" | dmenu "$@") case $action in "type password") @@ -39,6 +39,9 @@ else echo "$passentry" | { IFS= read -r pass; printf %s "$pass"; } | xdotool type --clearmodifiers --file - ;; + "print info") + st -e sh -c "pass show "$password" && read" + ;; *) exit ;;