From bf144ceca6285af5ce9f64f1176cb104f78b9637 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 21 Nov 2022 23:59:14 +0000 Subject: Add --clip-to-padding option. --- doc/config | 13 +++++++++---- doc/tofi.5.md | 8 ++++++++ doc/tofi.5.scd | 7 +++++++ 3 files changed, 24 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/config b/doc/config index a008fbd..017aeb1 100644 --- a/doc/config +++ b/doc/config @@ -161,10 +161,15 @@ corner-radius = 0 # Padding between borders and text. Can be pixels or a percentage. - padding-top = 0 - padding-bottom = 0 - padding-left = 0 - padding-right = 0 + padding-top = 8 + padding-bottom = 8 + padding-left = 8 + padding-right = 8 + + # Whether to clip text drawing to be within the specified padding. This + # is mostly important for allowing text to be inset from the border, + # while still allowing text backgrounds to reach right to the edge. + clip-to-padding = true # Whether to scale the window by the output's scale factor. scale = true diff --git a/doc/tofi.5.md b/doc/tofi.5.md index d87e232..e8f3c49 100644 --- a/doc/tofi.5.md +++ b/doc/tofi.5.md @@ -530,6 +530,14 @@ options. > > Default: 8 +**clip-to-padding**=*true\|false* + +> Whether to clip text drawing to be within the specified padding. This +> is mostly important for allowing text to be inset from the border, +> while still allowing text backgrounds to reach right to the edge. +> +> Default: true + **horizontal**=*true\|false* > List results horizontally. diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index 53bdc68..72be59e 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -451,6 +451,13 @@ options. Default: 8 +*clip-to-padding*=_true|false_ + Whether to clip text drawing to be within the specified padding. This + is mostly important for allowing text to be inset from the border, + while still allowing text backgrounds to reach right to the edge. + + Default: true + *horizontal*=_true|false_ List results horizontally. -- cgit v1.2.3