0.8.1 - Text theming bonanza
Deprecated
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
-
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, seethemes/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 withhistory=true
(the default), enables
history sorting in plaintofi
mode. -
Added
font-features
option, allowing the specification of OpenType font
features in a similar way to CSSfont-feature-settings
. -
Added
font-variations
option, allowing customisation of variable fonts in a
similar way to CSSfont-variation-settings
. -
Added
clip-to-padding
option, to allow drawing text outside the specified
padding.
Changed
- Due to the number of available options, the usage info now only contains a
short list of the most important ones and directs the user toman 5 tofi
. - If
-h
was passed, print usage info tostdout
rather thanstderr
. - Improved performance of most text handling operations.
- Improved performance of
selection-background
and others, so drawing
backgrounds is no longer an expensive operation.