WAYPROMPT(1)
β¨ wayprompt(1) β General Commands Manual, but make it a whole vibe β¨
πΈ NAME πΈ
okay so bestie, wayprompt is a prompt dialog tool for Wayland. Thatβs the whole NAME moment. π
It can display messages, optionally with buttons, and query for secrets. The wayland server has to support the wlr-layer-shell-unstable-v1 protocol extension β no cap.
The wayprompt executable described in this manual page is the command line version of wayprompt. The following other versions are available too:
pinentry-wayprompt(1)β the pinentry version ofwayprompt.wayprompt-ssh-askpass(1)β the ssh-askpass version ofwayprompt.
All wayprompt versions use the same configuration file. Read wayprompt(5) for more information on configuring wayprompt. π«Ά
β¨ SYNOPSIS β¨
wayprompt [-h] [--help]
wayprompt [--title] [--description] [--prompt] [--error] [--button-ok] [--button-no-ok] [--button-cancel] [--wayland-display] [--get-pin] [--json]
π OPTIONS π
-h,--helpβ print help text and exit. Bye bestie! π--title<string> β set the title of the dialog window. Main character title energy. π--description<string> β set the main text of the dialog window. This is where the tea goes. π--prompt<string> β set the prompt over the pin area. This may only be specified in combination with--get-pin. Periodt.--error<string> β set the error message displayed on the bottom of the dialog window. π--button-ok<string> β set the text of the ok button. Note that the button is only displayed if text is set for it. No text, no button, iykyk.--button-cancel<string> β set the text of the cancel button. Note that the button is only displayed if text is set for it. Same vibe check as above. β¨--button-not-ok<string> β set the text of the not-ok button. Note that the button is only displayed if text is set for it. Again: text or itβs not showing up, fr fr.--wayland-display<string> β set the wayland display namewaypromptshould connect to. Note that normallywayprompttries to get this from theWAYLAND_DISPLAYenvironment variable. π--get-pinβ activate the pin mode, allowing users to type a secret intowayprompt. Secretive. π€«--jsonβ format output as JSON, useful for machine parsing. Robots love this one. π€
π OUTPUT π
wayprompt outputs status in a simple format to stdout. The first line will be
user-action: <status>
where <status> is one of either ok, not-ok or cancel. If --get-pin is used, making wayprompt prompt for a secret, then a second line is outputted. This is either
pin: <secret>
in the case of the ok button being used or the Enter key being pressed, where <secret> is the entered secret. Or alternatively
no pin
in the case of either the not-ok or cancel button being used, the Escape key being pressed, or the secret being empty on confirmation. π
π RETURN VALUE π
The command line version of wayprompt will exit with one of the following commands β iconic wording, I donβt make the rules:
0β The user triggered "ok" (by pressing Enter or clicking the button).10β The user triggered "cancel" (by pressing Escape or clicking the button).20β The user triggered "not-ok" (by clicking the button).1β An error occured.
yes bestie, βoccuredβ is literally what the page says β preserving the spelling exactly π
π AUTHOR π
Leon Henrik Plickat β the author. Slay. π
π¦ SEE ALSO π¦
pinentry-wayprompt(1), wayprompt(5)
π source/version: git.sr.ht/~leon_plickat/wayprompt Β· date: 2023-06-03 Β· manual: WAYPROMPT(1) β mwah, bestie! π
π¦ where this page comes from
- nixos 26.05: wayprompt 0.1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms