diff options
| author | Lukasz Kasprzak <lukasz@arcofasiagroup.com> | 2026-08-21 10:16:51 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukasz@arcofasiagroup.com> | 2026-08-21 10:16:51 +0200 |
| commit | 69add3767988d0dfc6ecac37405cfb10abe8dbb7 (patch) | |
| tree | 8154e3f62a0415e7c99880c24a1f1a56665c143c /README.md | |
| parent | 31db51d7fb782c8e79bf1df067dadc1a8be63255 (diff) | |
| download | colitur-x-69add3767988d0dfc6ecac37405cfb10abe8dbb7.tar.gz colitur-x-69add3767988d0dfc6ecac37405cfb10abe8dbb7.zip | |
feat(colitur-x): fill the window instead of a fixed grid
Cell size is now computed from the window -- width divided seven ways,
height six -- and the number of lines a feast name gets is whatever fits
the resulting cell. config.h holds minimums rather than sizes.
Under a tiling window manager the calendar now uses its whole tile. It
previously drew a fixed 196x116 grid and left the rest of the tile black,
which is what every screenshot of it has shown.
The size hint is now PREFERRED plus MINIMUM, never fixed. Pinning it
fought the WM, which ignored it anyway, and stopped the grid using a
larger tile.
Added -g WxH, the same flag st takes, mainly because it makes the reflow
testable: verified at 1365x687 (two name lines) and 1852x1024 (three).
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -14,8 +14,15 @@ presentation choice and belongs in a viewer: colitur's own kernel is pure and deliberately never asks what day it is, which is what lets it be tested to the year 9999. + colitur-x -g 1200x820 < day.csv # preferred size, if the WM allows CX_DUMP=/tmp/f.ppm colitur-x < day.csv # write one frame, then exit +The grid **fills whatever size it is given**: cell width is the window +divided seven ways, cell height six ways, and the number of lines a feast +name gets is whatever fits. Under a tiling window manager it therefore uses +its whole tile rather than sitting in a corner of one, and resizing reflows +instead of clipping. `config.h` sets minimums, not sizes. + It reads CSV on **stdin** and nothing else, so the shell decides what it shows. One month: |
