dots

Dotfiles for Linux
Log | Files | Refs | README

commit b39e9f583550aec252b5173c8ada502c6ab3e710
parent 0860562319efee05502e4f5f083807d6959ecbbc
Author: Chris Kiriakou <c@ckiri.com>
Date:   Thu,  9 Jul 2026 09:48:07 +0200

allow for subfolders in password store

Diffstat:
Mscripts/dot-local/bin/passmenu.sh | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/scripts/dot-local/bin/passmenu.sh b/scripts/dot-local/bin/passmenu.sh @@ -3,8 +3,6 @@ # Select a password from `pass` using wmenu (dmenu wayland) instead of dmenu. # Mocks the standart implementation of passmenu. -symbol="/usr/share/icons/Papirus-Dark/symbolic/status/dialog-password-symbolic.svg" - # Check if a wayland compositor is used, if not throw error if test -n $WAYLAND_DISPLAY; then menu="wmenu" @@ -14,10 +12,10 @@ else fi # Select all passwords in password store -password_files=$(find ~/.password-store -type f -name '*.gpg' -exec sh -c 'basename {} .gpg' \;) +password_files=$(find ~/.password-store -name '*.gpg' | cut -d "/" -f 5- | cut -d "." -f 1) # Pipe all passwords into the menu -password=$(printf '%s\n' "${password_files}" | $menu "$@") +password=$(printf '%s\n' "${password_files}" | $menu -f "Sans-serif 10" "$@") # Exit if store is empty test -n $password || exit