WAYPROMPT(1)

πŸ“¦ version 0.1.2, in nixos 26.05

✨ 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:

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 name wayprompt should connect to. Note that normally wayprompt tries to get this from the WAYLAND_DISPLAY environment variable. πŸ‘€
  • --get-pin β€” activate the pin mode, allowing users to type a secret into wayprompt. 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