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 = [ command = [
"sh" (toString (
"-c" pkgs.writeShellScript "xsettingsd" ''
"sleep 3; ${lib.getExe pkgs.xsettingsd} -c ${pkgs.writeText "xsettingsd.conf" '' while :
Xft/DPI 122880 do
''}" ${lib.getExe pkgs.xsettingsd} -c ${pkgs.writeText "xsettingsd.conf" "Xft/DPI 122880\n"}
done
''
))
]; ];
} }
]; ];

View File

@@ -5,20 +5,6 @@
... ...
}: }:
{ {
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 = {
@@ -95,7 +81,6 @@
XDG_CURRENT_DESKTOP = "niri"; XDG_CURRENT_DESKTOP = "niri";
XDG_SESSION_DESKTOP = "niri"; XDG_SESSION_DESKTOP = "niri";
QT_AUTO_SCREEN_SCALE_FACTOR = "1"; QT_AUTO_SCREEN_SCALE_FACTOR = "1";
DISPLAY = ":0";
}; };
spawn-at-startup = map (c: { command = c; }) [ spawn-at-startup = map (c: { command = c; }) [

View File

@@ -70,6 +70,7 @@ in
cliphist cliphist
swaynotificationcenter swaynotificationcenter
nemo-with-extensions nemo-with-extensions
xwayland-satellite-unstable
]; ];
programs.wofi.enable = true; programs.wofi.enable = true;
xdg.configFile."wofi" = { xdg.configFile."wofi" = {