feat(xwayland-satellite): use builtin fractional scaling

This commit is contained in:
2025-06-21 22:55:20 +08:00
parent 77b8578379
commit 4685f31aa1

View File

@@ -76,28 +76,6 @@
scale = 1.25; scale = 1.25;
}; };
}; };
spawn-at-startup = [
{
command = [
"sh"
"-c"
"sleep 3; echo 'Xft.dpi: 120' | ${lib.getExe pkgs.xorg.xrdb} -merge"
];
}
{
command = [
(toString (
pkgs.writeShellScript "xsettingsd" ''
pgrep xsettingsd && exit
while :
do
${lib.getExe pkgs.xsettingsd} -c ${pkgs.writeText "xsettingsd.conf" "Xft/DPI 122880\n"}
done
''
))
];
}
];
}; };
}; };
@@ -128,7 +106,7 @@
{ {
"inode/directory" = [ "nemo.desktop" ]; "inode/directory" = [ "nemo.desktop" ];
"application/pdf" = [ "evince.desktop" ]; "application/pdf" = [ "org.gnome.Evince.desktop" ];
"text/*" = editor; "text/*" = editor;
"application/json" = editor; "application/json" = editor;