sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1816B)


      1 anysize
      2 =========
      3 
      4 Description
      5 -----------
      6 By default, st's window size always snaps to the nearest multiple of the
      7 character size plus a fixed inner border (set with borderpx in config.h). When
      8 the size of st does not perfectly match the space allocated to it (when using a
      9 tiling WM, for example), unsightly gaps will appear between st and other apps,
     10 or between instances of st.
     11 
     12 This patch allows st to resize to any pixel size, makes the inner border size
     13 dynamic, and centers the content of the terminal so that the left/right and
     14 top/bottom borders are balanced. With this patch, st on a tiling WM will always
     15 fill the entire space allocated to it.
     16 
     17 Download
     18 --------
     19 * [st-anysize-0.8.1.diff](st-anysize-0.8.1.diff)
     20 * [st-anysize-20201003-407a3d0.diff](st-anysize-20201003-407a3d0.diff)
     21 * [st-anysize-0.8.4.diff](st-anysize-0.8.4.diff)
     22 * [st-anysize-20220718-baa9357.diff](st-anysize-20220718-baa9357.diff)
     23 
     24 Authors
     25 -------
     26 * Augusto Born de Oliveira - <augustoborn@gmail.com>
     27 
     28 Expected anysize
     29 ================
     30 
     31 As said above, the anysize patch will automatically balance the left/right and
     32 top/bottom borders, with the terminals contents centered and the borders dynamic.
     33 This behavior may be unexpected, such as terminal content placement, and the
     34 terminal contents 'swimming'; constantly moving/shaking while the terminal is
     35 being resized, which isn't very good to look at.
     36 
     37 This variant will only add the border paddings to the bottom and the right of the
     38 window, which is usually expected as english is left to right and the terminal
     39 output comes from the top.
     40 
     41 The change is very small, and only requires 2 lines to be changed in `x.c`.
     42 
     43 The outcome of this behavior is what should be expected from an 'anysize' patch.
     44 
     45 Download
     46 --------
     47 * [st-expected-anysize-0.9.diff](st-expected-anysize-0.9.diff)