dotfiles/nix/overlays/default.nix
Oliver Davies 61c0b7c5c6 st: add anysize patch
> By default, st's window size always snaps to the nearest multiple of
the character size plus a fixed inner border (set with borderpx in
config.h). When the size of st does not perfectly match the space
allocated to it (when using a tiling WM, for example), unsightly gaps
will appear between st and other apps, or between instances of st.
>
> This patch allows st to resize to any pixel size, makes the inner
border size dynamic, and centers the content of the terminal so that the
left/right and top/bottom borders are balanced. With this patch, st on a
tiling WM will always fill the entire space allocated to it.

https://st.suckless.org/patches/anysize
2025-02-17 01:09:00 +00:00

42 lines
919 B
Nix

{ inputs, self, ... }:
{
additions =
final: prev:
import ../pkgs {
inherit prev;
pkgs = final;
};
modifications = final: prev: {
dwm = prev.dwm.override {
patches = [
"${self}/patches/dwm/add-custom-commands-and-keys.patch"
"${self}/patches/dwm/change-mod-key.patch"
"${self}/patches/dwm/dwm-hide_vacant_tags-6.4.diff"
"${self}/patches/dwm/dwm-pertag-20200914-61bb8b2.diff"
];
};
st = prev.st.override {
patches = [
"${self}/patches/st/change-font.patch"
"${self}/patches/st/st-anysize-20220718-baa9357.diff"
];
};
};
stable-packages = final: _prev: {
nixpkgs-2405 = import inputs.nixpkgs-2405 {
config.allowUnfree = true;
system = final.system;
};
nixpkgs-2411 = import inputs.nixpkgs-2411 {
config.allowUnfree = true;
system = final.system;
};
};
}