summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-11-21 23:59:14 +0000
committerPhil Jones <philj56@gmail.com>2022-11-21 23:59:14 +0000
commitbf144ceca6285af5ce9f64f1176cb104f78b9637 (patch)
tree1d6fde6e84e16031ae60349279d25b90a0d8a2ac /doc
parent3e11dc2327d70e860b3ad32db386aadd549393b3 (diff)
Add --clip-to-padding option.
Diffstat (limited to 'doc')
-rw-r--r--doc/config13
-rw-r--r--doc/tofi.5.md8
-rw-r--r--doc/tofi.5.scd7
3 files changed, 24 insertions, 4 deletions
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.