[PATCH 1/2] Replace `dmenu-wl` with `wmenu` in passmenu script.

c4llv07e igor at c4llv07e.xyz
Tue Apr 16 20:30:14 UTC 2024


---

Wmenu is gradually becoming a standard alternative to dmenu on
Wayland compositors[1]. Shouldn't it be used in passmenu as well?

This would also make it more accessible, since dmenu-wl can be found
in a much smaller number of repositories than wmenu (11 versus 38
packages on repology).

[1]
dwl: https://codeberg.org/dwl/dwl/pulls/589
sway: https://github.com/swaywm/sway/pull/7384

 contrib/dmenu/README.md | 4 ++--
 contrib/dmenu/passmenu  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/dmenu/README.md b/contrib/dmenu/README.md
index 8a196cb..c261023 100644
--- a/contrib/dmenu/README.md
+++ b/contrib/dmenu/README.md
@@ -4,7 +4,7 @@ clipboard without having to open up a terminal window if you don't already have
 one open. If `--type` is specified, the password is typed using [xdotool][]
 instead of copied to the clipboard.
 
-On wayland [dmenu-wl][] is used to replace dmenu and [ydotool][] to replace xdotool.
+On wayland [wmenu][] is used to replace dmenu and [ydotool][] to replace xdotool.
 Note that the latter requires access to the [uinput][] device, so you'll probably
 need to add an extra udev rule or similar to give certain non-root users permission.
 
@@ -15,6 +15,6 @@ need to add an extra udev rule or similar to give certain non-root users permiss
 [dmenu]: http://tools.suckless.org/dmenu/
 [xdotool]: http://www.semicomplete.com/projects/xdotool/
 [pass]: http://www.zx2c4.com/projects/password-store/
-[dmenu-wl]: https://github.com/nyyManni/dmenu-wayland
+[wmenu]: https://git.sr.ht/~adnano/wmenu
 [ydotool]: https://github.com/ReimuNotMoe/ydotool
 [uinput]: https://www.kernel.org/doc/html/v4.12/input/uinput.html
diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu
index 76d92ab..e7b6309 100755
--- a/contrib/dmenu/passmenu
+++ b/contrib/dmenu/passmenu
@@ -9,7 +9,7 @@ if [[ $1 == "--type" ]]; then
 fi
 
 if [[ -n $WAYLAND_DISPLAY ]]; then
-	dmenu=dmenu-wl
+	dmenu=wmenu
 	xdotool="ydotool type --file -"
 elif [[ -n $DISPLAY ]]; then
 	dmenu=dmenu
-- 
2.44.0



More information about the Password-Store mailing list