From ea64fc43a6a321fcc7417f35d5ce50a2c7ee9d7e Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sat, 20 Aug 2022 09:37:40 +0100 Subject: Add scale option. Previously, tofi wouldn't scale pixel values by the output's scale factor. This allows pixel-perfect sizes on displays with scale factors >1, but means that configs need to be changed on a per-monitor basis, and is at odds with how other applications (notable Sway) behave. This commit adds a new option, --scale, to scale pixel values by the output's scale factor. For backwards compatibility, this currently defaults to false, and font scaling is performed regardless (the existing behaviour). In the next release, this will default to true, and font scaling will follow the same behaviour as everything else. --- doc/tofi.5.scd | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/tofi.5.scd') diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index df2f4d6..cf605b3 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -143,6 +143,16 @@ options. Default: "" +*scale*=_true|false_ + Scale the window by the output's scale factor. + + *WARNING*: In the next version of tofi, this will default to true, so + set this to false now if you don't want that behaviour. Note that + currently, font scaling will still occur when this is set to _false_ - + that will change when _true_ becomes the default. + + Default: false + *margin-top*=_px|%_ Offset from top of screen. See *PERCENTAGE VALUES* for more information. Only has an effect when anchored to the top of the screen. -- cgit v1.2.3