From e14c592f39dac97a5045f5f6ec1aa1ca0192532b Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 6 Jan 2021 11:17:29 +0100 Subject: config: add optional ‘center’ argument to ‘pad’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When set, the grid contents is centered in the window. I.e. the left/right and top/bottom margins are equal (+- 1px). This causes the content to “jump” while doing an interactive resize, but may still be preferred in e.g. a tiling WM. Closes #273 --- doc/foot.ini.5.scd | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 9cabc1d2..4bf40af2 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -73,7 +73,18 @@ in this order: *pad* Padding between border and glyphs, in pixels (subject to output - scaling), on the form _XxY_. Default: _2x2_. + scaling), on the form _XxY_. + + This will add _at least_ X pixels on both the left and right + sides, and Y pixels on the top and bottom sides. The grid content + will be anchored in the top left corner. I.e. if the window + manager forces an odd window size on foot, the additional pixels + will be added to the right and bottom sides. + + To instead center the grid content, append *center* (e.g. *pad=5x5 + center*). + + Default: _2x2_. *initial-window-size-pixels* Initial window width and height in _pixels_ (subject to output -- cgit v1.3