fix(xwayland-satellite): fractional scaling

This commit is contained in:
2025-06-07 14:31:44 +08:00
parent 8c7b85fa12
commit 2cf0562cb6
2 changed files with 23 additions and 1 deletions

View File

@@ -83,6 +83,15 @@
"sleep 3; echo 'Xft.dpi: 120' | ${lib.getExe pkgs.xorg.xrdb} -merge" "sleep 3; echo 'Xft.dpi: 120' | ${lib.getExe pkgs.xorg.xrdb} -merge"
]; ];
} }
{
command = [
"sh"
"-c"
"sleep 3; ${lib.getExe pkgs.xsettingsd} -c ${pkgs.writeText "xsettingsd.conf" ''
Xft/DPI 122880
''}"
];
}
]; ];
}; };
}; };

View File

@@ -5,6 +5,20 @@
... ...
}: }:
{ {
my.home.systemd.user.services.xwayland-satellite = {
Unit = {
Description = "xwayland-satellite";
After = [ "niri.service" ];
};
Service = {
ExecStart = "${lib.getExe pkgs.xwayland-satellite-unstable}";
Restart = "on-failure";
};
Install.WantedBy = [
"niri.service"
];
};
my.home.programs.niri.settings = { my.home.programs.niri.settings = {
input = { input = {
focus-follows-mouse = { focus-follows-mouse = {
@@ -85,7 +99,6 @@
}; };
spawn-at-startup = map (c: { command = c; }) [ spawn-at-startup = map (c: { command = c; }) [
[ "${lib.getExe pkgs.xwayland-satellite-unstable}" ]
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ] [ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
[ [
"${lib.getExe pkgs.swaybg}" "${lib.getExe pkgs.swaybg}"