pekwm_dialog(1)
π pekwm_dialog π
okay bestie, gather round, because this little cutie has a whole manual and we're gonna read it together. it's the pekwm_dialog page from the user manual, and honestly? it's giving "tiny app, huge personality." β¨
πΈ NAME πΈ
pekwm_dialog β a dialog application that was inspired by xmessage, no cap.
π¦ SYNOPSIS π¦
pekwm_dialog [--display] message
π DESCRIPTION π
so basically, pekwm_dialog pops up a simple little dialog for you. inside it there's a title, an image, some message text, and then a button for every single option you specified. and if you specified no options at all? it just gives you one lone Ok button. simple. iconic. π
now here's the part that actually matters: the caller figures out which option got picked by checking the exit code of the application. the first option exits with status code 0, the next one exits with 1, and so on and so on down the line. first one gets a zero, everyone after that just counts up. π₯
and because of that exact behavior, the recommended play is to make ok your first option, then cancel as the second one, and then whatever further options you want after that. why? because it caters for the standard exit code 0 on ok, and then cancel would give the same exit code as on errors. that's the whole vibe β first option = 0 = ok, second option = 1 = also what errors give you. π
here's a little illustration showing how the dialog elements lay out:
--------------------------------------------
| TITLE |
--------------------------------------------
| |
| Image if any is displayed here |
| |
--------------------------------------------
| Message text goes here |
| |
--------------------------------------------
| [Option1] [Option2] |
--------------------------------------------
title up top, image in the middle, message text below that, buttons at the bottom. layout understood, we move. π«Ά
β¨ OPTIONS β¨
--helpβ shows you the help information. a lil "what is this" moment, we love her for it. π--display DISPLAYβ connects to DISPLAY instead of whateverDISPLAYis set to in the environment. so you can point it somewhere else entirely, periodt. π--geometry GEOMETRYβ sets the geometry of the window. the default is200x50, and it'll expand to fit the image size. so if you drop a big image in there, she grows. π--image IMAGEβ path to the image you want to display. your moment to shine, bestie. π--option STRINGβ an option title. and yes, multiple options are supported, so stack them up like it's a group chat. each one becomes its own button. π¦--title STRINGβ the title string. that's the thing chillin' in the top bar of the illustration up there. β
lowkey reminder: the order you pass those--optionflags in is the order the exit codes come out in. first option =0, second =1, and on we go. so plan your buttons accordingly, iykyk. π
and that's the whole page, bestie! this lil manual came out of the pekwm_dialog user manual, dated February 2021 β¨ β sending you off with all the love, all the vibes, and all the exit codes. mwah. ππΈππ¦
π¦ where this page comes from
- alpine 3.24: pekwm-doc 0.3.2-r0 Β· GPL-2.0-or-later
- arch rolling: pekwm 0.4.4-1 Β· GPL-2.0-or-later
- nixpkgs unstable: pekwm 0.3.2
- ubuntu stonking: pekwm 0.4.4-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms