From 8e8e5241e96dc1bec3d897f514b77553da033529 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Wed, 8 Jul 2026 09:55:46 -0700 Subject: password dmenu script --- scripts/misc/pass-menu.sh | 6 ++++++ setup.sh | 2 ++ 2 files changed, 8 insertions(+) create mode 100755 scripts/misc/pass-menu.sh diff --git a/scripts/misc/pass-menu.sh b/scripts/misc/pass-menu.sh new file mode 100755 index 0000000..ca716d9 --- /dev/null +++ b/scripts/misc/pass-menu.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +root=${PASSWORD_STORE_DIR:-~/.password-store} +selection=$(sh -c "find $root -name '*.gpg' -print | sed -e \"s#$root/\?##\" -e \"s#.gpg##\" | dmenu -i") + +pass show -c "$selection" diff --git a/setup.sh b/setup.sh index cbe8992..6a117d3 100755 --- a/setup.sh +++ b/setup.sh @@ -43,6 +43,8 @@ if confirm "Check and install symlinks?"; then ln -s ${here}scripts/volume/volumedown ${there}.local/bin/volumedown ln -s ${here}scripts/volume/volumemute ${there}.local/bin/volumemute ln -s ${here}scripts/misc/lk.sh ${there}.local/bin/lk + ln -s ${here}scripts/misc/lk.sh ${there}.local/bin/l + ln -s ${here}scripts/misc/pass-menu.sh ${there}.local/bin/pass-menu ln -s ${here}scripts/misc/battery.sh ${there}.local/bin/tmubattery fi -- cgit v1.2.3