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:
@@ -1,9 +1,16 @@
|
|||||||
{ config, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.sane.programs.wvkbd;
|
cfg = config.sane.programs.wvkbd;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sane.programs.wvkbd = {
|
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.method = "bwrap";
|
||||||
sandbox.whitelistWayland = true;
|
sandbox.whitelistWayland = true;
|
||||||
|
|
||||||
@@ -37,6 +44,8 @@ in
|
|||||||
environment.WVKBD_LAYERS = "full,special,emoji";
|
environment.WVKBD_LAYERS = "full,special,emoji";
|
||||||
environment.WVKBD_HEIGHT = "216"; #< default: 250 (pixels)
|
environment.WVKBD_HEIGHT = "216"; #< default: 250 (pixels)
|
||||||
# environment.WVKBD_LANDSCAPE_HEIGHT = "??"; #< default: 120 (pixels)
|
# environment.WVKBD_LANDSCAPE_HEIGHT = "??"; #< default: 120 (pixels)
|
||||||
|
# more settings tunable inside config.h when compiling:
|
||||||
|
# - KBD_KEY_BORDER = 2
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user