1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 19:24:54 +02:00
tldr/pages/linux/dmenu.md
2019-10-28 17:30:04 -03:00

553 B

dmenu

Dynamic menu. Creates a menu from a text input with each item on a new line.

  • Display a menu of the output of the ls command:

{{ls}} | dmenu

  • Display a menu with custom items seperated by a new line (\n):

echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu

  • Let the user choose between multiple items and save the selected one to a file:

echo -e "{{red}}\n{{green}}\n{{blue}}" | dmenu > {{color.txt}}

  • Launch dmenu on a specific monitor:

ls | dmenu -m {{1}}

  • Display dmenu at the bottom of the screen:

ls | dmenu -b