Dynamic menu. Create a menu from a text input with each item on a new line. More information: https://manned.org/dmenu.
ls
command:ls | dmenu
\n
):echo -e "red\ngreen\nblue" | dmenu
echo -e "red\ngreen\nblue" | dmenu > color.txt
ls | dmenu -m 1
ls | dmenu -b