1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

man: add example for dmenu

This commit is contained in:
Jason Pleau 2015-04-07 21:50:57 -04:00
parent f72629a370
commit 7b88b12bb0
2 changed files with 28 additions and 0 deletions

View file

@ -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*

View file

@ -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