mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 16:35:28 +02:00
dmenu: add page (#3474)
This commit is contained in:
parent
9fc91215f4
commit
4a37a5b067
1 changed files with 24 additions and 0 deletions
24
pages/linux/dmenu.md
Normal file
24
pages/linux/dmenu.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue