I'm looking for a scriptable dialog utility for Linux/X11/Wayland that I'd run like this:
$ ask F="Delete all files" D="Launch drones" X="Open images"
and it'd display X11 dialog window similar to this:
(F) Delete all files
(D) Launch drones
(X) Open images
that would disappear either after pressing Escape
or after pressing any letter specified (F
, D
, X
). In the first case it'd output nothing and exit with code 1, in the second case it'd output line with the pressed letter and exit with code 0.
I know 9menu or ratmenu. I know I could make one but I hate to mess with available GUI toolkits.