Pkmenu
PolicyKit agent for window managers
Install / Use
/learn @cobaltgit/PkmenuREADME
pkmenu
A PolicyKit agent for window managers, supporting dmenu-compatible launchers for prompts.
Written entirely in POSIX shell for portability.
Originally based on czaplicki/rofi-polkit-agent
Supported launchers
dmenu(password patch recommended!)rofifuzzel
Requirements
- A POSIX-compliant shell (
sh) - Any of the three supported launchers
cmd-polkitjq
Installation
To install, just copy the pkmenu script into a location in $PATH:
$ chmod +x pkmenu
$ sudo cp pkmenu /usr/local/bin/
Usage
Basic example:
# start pkmenu with dmenu as launcher
$ pkmenu -l dmenu
Whenever PolicyKit triggers a password authentication, your chosen launcher will prompt you to enter your user password.
Additional arguments to the launcher can be passed with the -a option:
# start pkmenu using fuzzel with red prompt colour and DejaVu Sans Mono font
$ pkmenu -l fuzzel -a "--prompt-color=ff0000ff --font='DejaVu Sans Mono'"
Autostart
On most systems, you can place pkmenu.desktop into your local XDG autostart folder, or you can start the agent
from your init script (.xinitrc or WM config)
Make sure to replace dmenu in pkmenu.desktop with a launcher you have installed on your computer
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
