A Wayland-native rewrite of passmenu
that uses wmenu instead of dmenu.
It lets you select a password entry from your pass store
via a simple Wayland menu and either copy it to the clipboard or type it automatically.
- π₯οΈ Wayland-native β no Xwayland required
- π Fully compatible with
pass - β¨οΈ Optional automatic typing with
ydotool/xdotool - π¨ Modern look β configurable colors and fonts
- β‘ Drop-in replacement for
passmenu
You need the following tools installed:
sudo xbps-install -S pass wmenu xdotool gnupg pinentry-qtgit clone https://github.com/filiprojek/passmenu-wmenu.git
cd passmenu-wmenu
chmod +x passmenu
sudo cp passmenu /usr/local/bin/You can then run it directly as passmenu.
passmenu # show menu and copy password to clipboard
passmenu --type # type password via ydotool/xdotoolThe script will automatically detect if you are in a Wayland or X11 session and pick the correct typing backend.
It searches passwords in:
$PASSWORD_STORE_DIR (defaults to ~/.password-store)
By default, the script launches wmenu with this style:
-i -l 16 \
-f "LiterationMono Nerd Font 12" -p "Pass:" \
-n bbbbbbff -N 222222ff \
-s eeeeeeff -S 444444ff \
-m eeeeeeff -M 444444ffThat gives a dark gray background with light gray selection, 16 lines visible, and a clean monospace look.
You can change fonts or colors directly in the script.
This script uses -F to enable fuzzy matching in wmenu.
If your wmenu build was compiled without fuzzy support, just remove -F
from the wmenu command in the script.
To check if your build supports it:
wmenu -h | grep -F -- "-F enable fuzzy matching"If you see the line:
-F enable fuzzy matching
then itβs safe to leave -F in place.
You can get fuzzy search support from https://github.com/filiprojek/wmenu
-
Requires a working
gpg-agentand graphicalpinentry(e.g.,pinentry-qt). -
Works perfectly under River, Sway, Hyprland, etc.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for full text.
This project is inspired by the original passmenu from the
password-store project.
- Original
passmenuby Jason A. Donenfeld wmenuby adnano