Skip to content

filiprojek/passmenu-wmenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

passmenu-wmenu

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.


✨ Features

  • 🖥️ 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

🧱 Dependencies

You need the following tools installed:

Void Linux example

sudo xbps-install -S pass wmenu xdotool gnupg pinentry-qt

⚙️ Installation

git 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.


🧩 Usage

passmenu             # show menu and copy password to clipboard
passmenu --type      # type password via ydotool/xdotool

The 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)

🎨 Appearance

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 444444ff

That 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.


🔍 Fuzzy matching

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


🧠 Notes

  • Requires a working gpg-agent and graphical pinentry (e.g., pinentry-qt).

  • Works perfectly under River, Sway, Hyprland, etc.


📜 License

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.


❤️ Credits

About

A Wayland-native rewrite of passmenu using wmenu

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages