[PATCH v3 2/2] passmenu: allow menu command to be configurable

Daniel Cordero pass at 0xdc.io
Fri May 29 18:44:37 CEST 2020


In a resized/scaled wayland display, dmenu running under Xwayland can
look blurry. There are several aternatives, so expose an environment
variable that can be used to override the default.
---
 contrib/dmenu/passmenu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu
index 83268bc..32facc8 100755
--- a/contrib/dmenu/passmenu
+++ b/contrib/dmenu/passmenu
@@ -13,7 +13,7 @@ password_files=( "$prefix"/**/*.gpg )
 password_files=( "${password_files[@]#"$prefix"/}" )
 password_files=( "${password_files[@]%.gpg}" )
 
-password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
+password=$(printf '%s\n' "${password_files[@]}" | ${PASSWORD_STORE_DMENU-dmenu} "$@")
 
 [[ -n $password ]] || exit
 
-- 
2.26.2



More information about the Password-Store mailing list