2019-10-28 20:30:05 +00:00
|
|
|
# dmenu
|
|
|
|
|
|
|
|
> Dynamic menu.
|
2024-04-18 05:04:00 +01:00
|
|
|
> Create a menu from a text input with each item on a new line.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manned.org/dmenu>.
|
2019-10-28 20:30:05 +00:00
|
|
|
|
|
|
|
- Display a menu of the output of the `ls` command:
|
|
|
|
|
|
|
|
`{{ls}} | dmenu`
|
|
|
|
|
2020-01-09 03:11:10 +00:00
|
|
|
- Display a menu with custom items separated by a new line (`\n`):
|
2019-10-28 20:30:05 +00:00
|
|
|
|
|
|
|
`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`
|