summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-07-24 12:58:17 +0100
committerPhil Jones <philj56@gmail.com>2022-07-24 12:58:17 +0100
commit5e78b1dbe2a879104cfaacda3e5d341b6ce482f2 (patch)
tree7d6320f47ce0e725b5cc79e70df082c4ae024b79 /README.md
parent9e8af9d25106b615dabf956305f4ef80496ed412 (diff)
Update readme with drun info.
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2cbfe96..b16bdcc 100644
--- a/README.md
+++ b/README.md
@@ -53,6 +53,10 @@ By default, running `tofi` causes it to act like dmenu, accepting options on
`tofi-run` is a symlink to `tofi`, which will cause tofi to display a list of
executables under the user's `$PATH`.
+`tofi-drun` is also a symlink to `tofi`, which will cause tofi to display a
+list of applications found in desktop files as described by the [Desktop Entry
+Specification](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html).
+
To use as a launcher for Sway, add something similar to the following to your
Sway config file:
```
@@ -60,6 +64,17 @@ set $menu tofi-run | xargs swaymsg exec --
bindsym $mod+d exec $menu
```
+For `tofi-drun`, there are two possible methods:
+```
+# Launch via Sway
+set $drun tofi-drun | xargs swaymsg exec gio launch
+bindsym $mod+Shift+d exec $drun
+
+# Launch directly
+set $drun tofi-drun --drun-launch=true
+bindsym $mod+Shift+d exec $drun
+```
+
See the main [manpage](doc/tofi.1.md) for more info.
### Theming