From 4a37a5b06791f0710f8e93cc6142f05bb2386b50 Mon Sep 17 00:00:00 2001 From: Alone Date: Mon, 28 Oct 2019 21:30:05 +0100 Subject: [PATCH] dmenu: add page (#3474) --- pages/linux/dmenu.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/dmenu.md diff --git a/pages/linux/dmenu.md b/pages/linux/dmenu.md new file mode 100644 index 0000000000..540c0ce0c7 --- /dev/null +++ b/pages/linux/dmenu.md @@ -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`