mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 11:48:10 +00:00
Update cheatsheets
This commit is contained in:
35
linux/dmenu
Normal file
35
linux/dmenu
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dmenu
|
||||
|
||||
> Dynamic menu.
|
||||
> Creates a menu from a text input with each item on a new line.
|
||||
> More information: <https://manned.org/dmenu>.
|
||||
|
||||
- Display a menu of the output of the `ls` command:
|
||||
|
||||
`{{ls}} | dmenu`
|
||||
|
||||
- Display a menu with custom items separated by a new line (`
|
||||
`):
|
||||
|
||||
`echo -e "{{red}}
|
||||
{{green}}
|
||||
{{blue}}" | dmenu`
|
||||
|
||||
- Let the user choose between multiple items and save the selected one to a file:
|
||||
|
||||
`echo -e "{{red}}
|
||||
{{green}}
|
||||
{{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`
|
||||
Reference in New Issue
Block a user