Switch passmenu to bemenu on Wayland

George Ornbo george at shapeshed.com
Wed Mar 16 11:24:56 UTC 2022


The `passmenu` script was extended to offer Wayland support using
the dmenu-wayland[1] project. This project is not actively maintained.

bemenu[2] is actively maintained and widely used on Wayland,
particularly in the sway community.

This patch is a proposal two switch Wayland support for passmenu to use
bemenu rather than dmenu-wayland due to it being better maintained and
more widely supported. 

[1]: https://github.com/nyyManni/dmenu-wayland
[2]: https://github.com/Cloudef/bemenu
-- 
George Ornbo
http://shapeshed.com


-------------- next part --------------
From ba4ea546a871392b9e1b736b5db93d174000c45c Mon Sep 17 00:00:00 2001
From: George Ornbo <george at shapeshed.com>
Date: Wed, 16 Mar 2022 11:10:20 +0000
Subject: [PATCH] Switch passmenu Wayland support to use bemenu

Wayland support for the passmenu script was added via the
dmenu-wayland[1] project. This is unmaintained and not widely used.

This patch switches Wayland support for the passmenu script to use the
more widely used bemenu[2] project.

[1]: https://github.com/nyyManni/dmenu-wayland
[2]: https://github.com/Cloudef/bemenu
---
 contrib/dmenu/passmenu | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu
index 76d92ab..69966b2 100755
--- a/contrib/dmenu/passmenu
+++ b/contrib/dmenu/passmenu
@@ -9,7 +9,8 @@ if [[ $1 == "--type" ]]; then
 fi
 
 if [[ -n $WAYLAND_DISPLAY ]]; then
-	dmenu=dmenu-wl
+	LD_LIBRARY_PATH=/usr/local/lib
+	dmenu="bemenu"
 	xdotool="ydotool type --file -"
 elif [[ -n $DISPLAY ]]; then
 	dmenu=dmenu
-- 
2.35.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20220316/941c001c/attachment.sig>


More information about the Password-Store mailing list