Skip to content

Commit 5e78b1d

Browse files
committed
Update readme with drun info.
1 parent 9e8af9d commit 5e78b1d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,28 @@ By default, running `tofi` causes it to act like dmenu, accepting options on
5353
`tofi-run` is a symlink to `tofi`, which will cause tofi to display a list of
5454
executables under the user's `$PATH`.
5555

56+
`tofi-drun` is also a symlink to `tofi`, which will cause tofi to display a
57+
list of applications found in desktop files as described by the [Desktop Entry
58+
Specification](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html).
59+
5660
To use as a launcher for Sway, add something similar to the following to your
5761
Sway config file:
5862
```
5963
set $menu tofi-run | xargs swaymsg exec --
6064
bindsym $mod+d exec $menu
6165
```
6266

67+
For `tofi-drun`, there are two possible methods:
68+
```
69+
# Launch via Sway
70+
set $drun tofi-drun | xargs swaymsg exec gio launch
71+
bindsym $mod+Shift+d exec $drun
72+
73+
# Launch directly
74+
set $drun tofi-drun --drun-launch=true
75+
bindsym $mod+Shift+d exec $drun
76+
```
77+
6378
See the main [manpage](doc/tofi.1.md) for more info.
6479

6580
### Theming

meson.build

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ install_data(
3838
install_dir: completion_location
3939
)
4040

41+
install_symlink(
42+
'tofi-run',
43+
install_dir: completion_location,
44+
pointing_to: 'tofi',
45+
)
46+
47+
install_symlink(
48+
'tofi-drun',
49+
install_dir: completion_location,
50+
pointing_to: 'tofi',
51+
)
52+
4153
install_symlink(
4254
'tofi-run',
4355
install_dir: get_option('bindir'),

0 commit comments

Comments
 (0)