Bot releases are hidden (Show)
Published by philj56 over 1 year ago
text-cursor
text-cursor-style
, and themedauto-accept-single
option, to automatically accept the last remainingfont
option now performs home path substitution for paths starting with~/
.Published by philj56 almost 2 years ago
Text styling has been overhauled in this update, and as a result the
selection-padding
option has been replaced with
selection-background-padding
, to avoid ambiguity and match the other
available options. selection-padding
is therefore deprecated, and will be
removed in a future version of tofi, so please update your configs.
Added placeholder-text
option.
Overhaul text styling. Each piece of text in tofi is now styleable in a
similar way, with foreground and background colours. The pieces of text
that can be individually styled are:
prompt
placeholder
input
default-result
alternate-result
selection
Each of these pieces of text now has the following options available:
<text>-color
<text>-background
<text>-background-padding
<text>-background-corner-radius
See man 5 tofi
or the example config file for more information. For an
example theme using these new options, see themes/soy-milk
.
Added ability to paste from the clipboard with ctrl-v
.
Added history-file
option. This both allows changing the history file
location, and when combined with history=true
(the default), enables
history sorting in plain tofi
mode.
Added font-features
option, allowing the specification of OpenType font
features in a similar way to CSS font-feature-settings
.
Added font-variations
option, allowing customisation of variable fonts in a
similar way to CSS font-variation-settings
.
Added clip-to-padding
option, to allow drawing text outside the specified
padding.
man 5 tofi
.-h
was passed, print usage info to stdout
rather than stderr
.selection-background
and others, so drawingPublished by philj56 almost 2 years ago
include
option, allowing config files to include other files.hide-input
and hidden-character
options for sensitive input.exclusive-zone
option, to control interaction with menu bars etc.terminal
option to allow tofi-drun
to launch terminal apps.multi-instance
option.Published by philj56 about 2 years ago
In the previous release, the scale
option was added to enable scaling of pixel
values by the display's scale factor. In this release, the default value of
scale
has changed to be true
, and fonts are no longer scaled if scale
is
set to false
. This makes tofi's behaviour match that of e.g. Sway, and makes
configs work more reliably on monitors with different scale factors.
If you use tofi on a HiDPI display, you may need to change your config's pixel
values to make things look right again.
require-match
option, to allow printing of input even when there areprompt-padding
option for more flexible spacing between the promptscale
option now defaults to true
, as noted above. The example themestofi(5)
manpage into behaviour and style options to make findingPublished by philj56 about 2 years ago
In previous versions of tofi, pixel values were always treated as device
pixels, ignoring the display's scale factor. This allows pixel-perfect sizes,
but means you have to make different configs for differently scaled displays,
and isn't how e.g. Sway does things. Additionally, fonts currently are scaled
by the scale factor, making things a little complex.
This release adds a scale
boolean option, which currently defaults to
false
. Setting this to true
will make pixel values scale with the display's
scale factor.
In the next version of tofi, scale
will default to true
(but still be
around if you want the old behaviour). Setting scale
to false
will also
start causing fonts to not be scaled by the scale factor.
If you use tofi on a HiDPI display, you should explicitly set scale
to your
desired setting now (or at least be aware that you'll need to change some theme
dimensions in the next version).
fuzzy_match
option.scale
option, as described above.selection-match-color
orselection-background-color
are specified.Published by philj56 about 2 years ago
In the previous release, the drun-print-exec
option was added to enable fixed
tofi-drun
behaviour. This release changes this to be the default, as this is
how it should have been done from the start. Consequently, the
drun-print-exec
option is now obsolete, and may be removed in the future, so
you can safely delete it from your configs.
doc/config
, and is installed to/etc/xdg/tofi/config
selection-padding
option, to make the selected item background wider.selection-match-color
option, to highlight the matching portion oftofi-compgen
is no longer installed, as it's really just a debuggingdrun-print-exec
is now always set to true, and the option is deprecated.output
and late-keyboard-init
options are no longer command-linePublished by philj56 about 2 years ago
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.
--num-results=0
is set (the new default).--drun-print-exec
option, as noted above.--font
option name in man page.Published by philj56 about 2 years ago
tofi-drun
mode for launching apps from .desktop
files.Ctrl-j
, Ctrl-k
and Tab
.fire
yields firefox
before aafire
.librt
for systems that require that (fromPublished by philj56 over 2 years ago
Now with 100% more working meson.build.
Published by philj56 over 2 years ago
Initial release. Good enough to use, but still some jank.