From b11feb1758d79e762a8b86041123459aaa802cda Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 21 Nov 2023 23:21:36 +0100 Subject: added mmpv and mpass-otp --- bin/menuscripts/mpass-otp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/menuscripts/mpass-otp (limited to 'bin/menuscripts/mpass-otp') diff --git a/bin/menuscripts/mpass-otp b/bin/menuscripts/mpass-otp new file mode 100755 index 0000000..b60f953 --- /dev/null +++ b/bin/menuscripts/mpass-otp @@ -0,0 +1,6 @@ +#!/bin/sh +pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -name "*.gpg" -printf '%f\n' | + sed 's/\.gpg$//' | + commander -c)" +[ "$pass" ] || exit 1 +pass otp -c keys/otp/"$pass" -- cgit v1.2.3 From f989900f49b186154db323797f8636d44f7d8c1f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 27 Nov 2023 23:46:10 +0100 Subject: added notification --- bin/menuscripts/mpass-otp | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/menuscripts/mpass-otp') diff --git a/bin/menuscripts/mpass-otp b/bin/menuscripts/mpass-otp index b60f953..e771f9f 100755 --- a/bin/menuscripts/mpass-otp +++ b/bin/menuscripts/mpass-otp @@ -4,3 +4,4 @@ pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -name "*.gpg" -printf '%f\n' | commander -c)" [ "$pass" ] || exit 1 pass otp -c keys/otp/"$pass" +notify-send -t 1000 "mpass" "copied $pass" -- cgit v1.2.3