Skip to content

0.3.0

Compare
Choose a tag to compare
@philj56 philj56 released this 27 Jul 18:36
· 157 commits to master since this release
v0.3.0
029fa1a

Warning - update your configs

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 release adds a new option, --drun-print-exec, to enable the
fixed behaviour. The next release will change this to be the default, as this
is how it should have been done from the start.

Added

  • Tofi will now automatically detect how many results can be displayed if
    --num-results=0 is set (the new default).
  • When running in drun mode, keywords will also be matched along with the name
    (so e.g. searching for "web" will return "firefox")
  • Add --drun-print-exec option, as noted above.

Fixed

  • Fixed percentage values passed to margin options not behaving correctly when
    output scaling is enabled.
  • Fix tofi not grabbing keyboard focus on River.
  • Correct --font option name in man page.
  • Fix percentage values on vertical monitors.
  • Fix drun mode weirdness when history is enabled