diff options
author | Jason Pleau <jason@jpleau.ca> | 2015-04-07 21:50:57 -0400 |
---|---|---|
committer | Jason Pleau <jason@jpleau.ca> | 2015-04-08 09:21:21 -0400 |
commit | 7b88b12bb064319a7680ec6e4a06a2a34e9f0d78 (patch) | |
tree | c944a91f1797d7f016d75b49ee37304b582b2fb4 | |
parent | f72629a3706df91b0dacfa1a612494e4f7e2ca8d (diff) |
man: add example for dmenu
-rw-r--r-- | doc/rofi-manpage.markdown | 10 | ||||
-rw-r--r-- | doc/rofi.1 | 18 |
2 files changed, 28 insertions, 0 deletions
diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown index cb0e22b4..55247c86 100644 --- a/doc/rofi-manpage.markdown +++ b/doc/rofi-manpage.markdown @@ -109,6 +109,16 @@ The official website for `dmenu` can be found: http://tools.suckless.org/dmenu/ Run rofi in dmenu mode. Allowing it to be used for user interaction in scripts. + In `dmenu` mode, **rofi** will read input from STDIN, and will output to STDOUT by default. + + Example to let the user choose between three pre-defined options: + + echo -e "Option #1\nOption #2\nOption #3" | rofi -dmenu + + Or get the options from a script: + + ~/my_script.sh | rofi -dmenu + Pressing `shift-enter` will open the selected entries and move to the next entry. `-show` *mode* @@ -110,6 +110,24 @@ Set the key combination to display a {mode} in daemon mode. .IP Run rofi in dmenu mode. Allowing it to be used for user interaction in scripts. .IP +In \fB\fCdmenu\fR mode, \fBrofi\fP will read input from STDIN, and will output to STDOUT by default. +.IP +Example to let the user choose between three pre\-defined options: +.PP +.RS +.nf + echo \-e "Option #1\\nOption #2\\nOption #3" | rofi \-dmenu +.fi +.RE +.IP +Or get the options from a script: +.PP +.RS +.nf + ~/my_script.sh | rofi \-dmenu +.fi +.RE +.IP Pressing \fB\fCshift\-enter\fR will open the selected entries and move to the next entry. .PP \fB\fC\-show\fR \fImode\fP |