fix(niri): fractional scaling

This works in latest unstable niri
This commit is contained in:
2025-06-14 16:50:25 +08:00
parent 1b6cf3b07f
commit 985cd8aa9d
3 changed files with 9 additions and 20 deletions

View File

@@ -86,11 +86,14 @@
}
{
command = [
"sh"
"-c"
"sleep 3; ${lib.getExe pkgs.xsettingsd} -c ${pkgs.writeText "xsettingsd.conf" ''
Xft/DPI 122880
''}"
(toString (
pkgs.writeShellScript "xsettingsd" ''
while :
do
${lib.getExe pkgs.xsettingsd} -c ${pkgs.writeText "xsettingsd.conf" "Xft/DPI 122880\n"}
done
''
))
];
}
];