wvkbd: change default key border 2 -> 1 px

since moby is scaled 2x, it's actually 2 px *in practice*
This commit is contained in:
Colin 2024-03-08 00:45:45 +00:00
parent b41320ffb3
commit 27c12edec0

View File

@ -1,9 +1,16 @@
{ config, ... }:
{ config, pkgs, ... }:
let
cfg = config.sane.programs.wvkbd;
in
{
sane.programs.wvkbd = {
packageUnwrapped = pkgs.wvkbd.overrideAttrs (base: {
postPatch = (base.postPatch or "") + ''
substituteInPlace layout.mobintl.h \
--replace-fail '#define KBD_KEY_BORDER 2' '#define KBD_KEY_BORDER 1'
'';
});
sandbox.method = "bwrap";
sandbox.whitelistWayland = true;
@ -37,6 +44,8 @@ in
environment.WVKBD_LAYERS = "full,special,emoji";
environment.WVKBD_HEIGHT = "216"; #< default: 250 (pixels)
# environment.WVKBD_LANDSCAPE_HEIGHT = "??"; #< default: 120 (pixels)
# more settings tunable inside config.h when compiling:
# - KBD_KEY_BORDER = 2
};
};
}