diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-09-20 11:45:19 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-09-20 11:45:19 +0200 |
commit | ecca3740145157b468064258974f505cc5c6771b (patch) | |
tree | 2654bb62183e3af3b2023ad8a4d9c708eee80d1e /bin/menuscripts/mpass | |
parent | d9cc15bce788c57789982a0da10fd5720b93d412 (diff) | |
parent | cd7abd1c2a045f6b824fdcad864693b85cd84d61 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/menuscripts/mpass')
-rwxr-xr-x | bin/menuscripts/mpass | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass deleted file mode 100755 index 8d5f4eb..0000000 --- a/bin/menuscripts/mpass +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env sh -store="${PASSWORD_STORE_DIR:-$HOME/.password-store}" - -# list passwords, group directories first -list_pswds() -{ - find "$1" \ - -maxdepth 1 -mindepth 1 \ - -not -name '.*' -type d -printf "%y\t%f\n" -o \ - -not -name '.*' -not -type d -printf "%y\t%f\n" | - sort -k1 -k2 | - cut -f 2 | sed 's/\.gpg$//' -} - -while [ -d "$store/$file" ] -do - choice="$(list_pswds "$store/$file" | commander -c -d)" - [ "$choice" ] || exit 1 - [ -z "$file" ] && file="$choice" || file="$file/$choice" -done -[ "$file" ] || exit 1 - -pass show -c "$file" || exit 1 -notify-send -t 1000 "mpass" "copied <b>$file</b>" - -[ "$WAYLAND_DISPLAY" ] && cliphist list >/dev/null && # on wayland and cliphist is running - cliphist list | head -n 1 | cliphist delete |