diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-06-18 23:05:23 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-06-18 23:05:23 +0200 |
commit | 11ee207cc10e72aa96fad4715b14a84c686ad480 (patch) | |
tree | bc98d60bb59ab0fdc183c6673fe8fe143fd367bc /bin/menuscripts | |
parent | 305c8e8ff1fc4a76fb42151105e119e8266df57c (diff) | |
parent | 8c5d85923a970bd60657848e1c2c6f627c4329d9 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/menuscripts')
-rwxr-xr-x | bin/menuscripts/mpass | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass index ebe3956..01c40e3 100755 --- a/bin/menuscripts/mpass +++ b/bin/menuscripts/mpass @@ -10,10 +10,15 @@ then else menucmd="fzf --prompt pass:" fi -while [ -d "${store}/${file}" ] +while [ -d "$store/$file" ] do - choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)" + choice="$($lscmd "$store/$file" | sed 's/\.gpg$//'| $menucmd)" [ "$choice" ] || break - file="${file}/${choice}" + file="$file/$choice" done -pass show -c "${file}" + +pass show -c "$file" && + if [ -n "$WAYLAND_DISPLAY" ] && cliphist list >/dev/null +then + cliphist list | head -n 1 | cliphist delete +fi |