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 /doc/rofi.1 | |
parent | f72629a3706df91b0dacfa1a612494e4f7e2ca8d (diff) |
man: add example for dmenu
Diffstat (limited to 'doc/rofi.1')
-rw-r--r-- | doc/rofi.1 | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |