diff options
author | Phil Jones <philj56@gmail.com> | 2022-07-27 15:00:05 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-07-27 15:12:26 +0100 |
commit | df3495a160878fd28e3642b47087024429bd512f (patch) | |
tree | 2f784c35706fec01fa34e410765deed61480b921 /doc/tofi.5.scd | |
parent | cf9669976601697be36e21e3359709f09c31d9da (diff) |
Fix window workspaces in drun mode.
Previously, tofi-drun would print the filename of the selected
.desktop file to stdout. This could then be passed to
`xargs swaymsg exec gio launch` to be executed.
The problem is that this ends up defeating the purpose of passing the
command to swaymsg exec, and the workspace the command was selected on
may not be the one that it starts up on, if for example it takes a long
time and the user switches workspaces in the meantime.
The solution is to instead print the Exec= line from the .desktop file,
and pass that directly to `xargs swaymsg exec --` for execution.
To avoid too much breaking of configs for the few people who use tofi
currently, this commit adds a new option, --drun-print-exec, to enable
the fixed behaviour. A future release will change this to be the
default, however.
Diffstat (limited to 'doc/tofi.5.scd')
-rw-r--r-- | doc/tofi.5.scd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index 3ad7015..5a977d3 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -194,6 +194,15 @@ options. Default: false +*drun-print-exec*=_true|false_ + If true, print an executable command line for the selected application + when in drun mode. Otherwise, just print the path of the .desktop file. + + *WARNING*: In the next version of tofi, this will change to always be + true, as it should have been from the start. + + Default: false + *hint-font*=_true|false_ Perform font hinting. Only applies when a path to a font has been specified via *font-name*. Disabling font hinting speeds up text |