mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Merge pull request #145 from jpleau/dmenu_example_man
manpage: add examples for dmenu
This commit is contained in:
commit
a8b5282e24
2 changed files with 28 additions and 0 deletions
|
@ -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*
|
||||
|
|
18
doc/rofi.1
18
doc/rofi.1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue