summaryrefslogtreecommitdiff
path: root/bin/menuscripts/mpass
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-09-19 15:00:03 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-09-19 15:00:03 +0200
commit5126b17be04fcc75dd1327975acb2f27080a1061 (patch)
tree3f100c5ce5072937a403591d52f2afbbbbb16a94 /bin/menuscripts/mpass
parent55fc5130e6cd5650dd82e2955b4266eb92c33738 (diff)
removed scripts and made seperate project
Diffstat (limited to 'bin/menuscripts/mpass')
-rwxr-xr-xbin/menuscripts/mpass27
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