summaryrefslogtreecommitdiffstats
path: root/doc/rofi.1.markdown
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2022-04-14 20:45:37 +0200
committerDave Davenport <qball@blame.services>2022-04-14 20:45:37 +0200
commit54e272df295cca15b457aa79f327609128aa76c5 (patch)
treebbc57dad50366769cf2b78e94965f80a12d80f37 /doc/rofi.1.markdown
parentd57d6de2ce8efcc051355c77c04793abac7210df (diff)
[Doc] Update rofi.1 with an extra example.
Diffstat (limited to 'doc/rofi.1.markdown')
-rw-r--r--doc/rofi.1.markdown30
1 files changed, 22 insertions, 8 deletions
diff --git a/doc/rofi.1.markdown b/doc/rofi.1.markdown
index 4e71d176..3ab114ca 100644
--- a/doc/rofi.1.markdown
+++ b/doc/rofi.1.markdown
@@ -18,19 +18,33 @@ filter, tokenized search and more.
## USAGE
-**rofi**'s main functionality is to assist in your workflow, allowing you to quickly switch
-between windows, start applications or log into a remote machine via `ssh`.
-There are different *modes* for different types of actions.
-**rofi** is a standalone application and should not be integrated into scripts.
-For integration into scripts it has a special mode that functions as a
-(drop-in) replacement for **dmenu(1)**. See emulating dmenu below.
+**rofi**'s main functionality is to assist in your workflow, allowing you to
+quickly switch between windows, start applications or log into a remote machine
+via `ssh`. There are different *modes* for different types of actions. **rofi**
+is a standalone application and should not be integrated into scripts. For
+integration into scripts it has a special mode that functions as a (drop-in)
+replacement for **dmenu(1)**. See emulating dmenu below.
### Running rofi
To launch **rofi** directly in a certain mode, specify a mode with `rofi -show <mode>`.
-To show the `run` dialog:
+To show the `drun` dialog:
+
+```bash
+ rofi -show drun
+```
+
+A very useful setup in minimalistic window managers is to combine `drun`, `run`
+with `window` mode:
+
+```bash
+ rofi -show combi -modes combi -combi-modes "window,drun,run"
+```
+
+In this setup it first list all open applications, then all installed
+applications. So if you type firefox and hit return, it will switch to the
+running firefox, or launch it when it is not running.
- rofi -show run
### Emulating dmenu