diff options
author | Phil Jones <philj56@gmail.com> | 2022-07-24 12:58:17 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-07-24 12:58:17 +0100 |
commit | 5e78b1dbe2a879104cfaacda3e5d341b6ce482f2 (patch) | |
tree | 7d6320f47ce0e725b5cc79e70df082c4ae024b79 | |
parent | 9e8af9d25106b615dabf956305f4ef80496ed412 (diff) |
Update readme with drun info.
-rw-r--r-- | README.md | 15 | ||||
-rw-r--r-- | meson.build | 12 |
2 files changed, 27 insertions, 0 deletions
@@ -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 diff --git a/meson.build b/meson.build index 617e9ef..32611a7 100644 --- a/meson.build +++ b/meson.build @@ -40,6 +40,18 @@ install_data( install_symlink( 'tofi-run', + install_dir: completion_location, + pointing_to: 'tofi', +) + +install_symlink( + 'tofi-drun', + install_dir: completion_location, + pointing_to: 'tofi', +) + +install_symlink( + 'tofi-run', install_dir: get_option('bindir'), pointing_to: 'tofi', ) |