Question: dmenu how does it work?
Answer: dmenu is an incredibly simple program. As input it takes a list of words or phrases, one word or phrase on each line, coming in via stdin. It displays several of those lines with words or phases on the screen. As you type letters, all phrases not containing a string of the letters you typed are eliminated.