fix(niri): fractional scaling
This works in latest unstable niri
This commit is contained in:
@@ -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
|
||||
''
|
||||
))
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
@@ -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 = {
|
||||
input = {
|
||||
focus-follows-mouse = {
|
||||
@@ -95,7 +81,6 @@
|
||||
XDG_CURRENT_DESKTOP = "niri";
|
||||
XDG_SESSION_DESKTOP = "niri";
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||
DISPLAY = ":0";
|
||||
};
|
||||
|
||||
spawn-at-startup = map (c: { command = c; }) [
|
||||
|
||||
@@ -70,6 +70,7 @@ in
|
||||
cliphist
|
||||
swaynotificationcenter
|
||||
nemo-with-extensions
|
||||
xwayland-satellite-unstable
|
||||
];
|
||||
programs.wofi.enable = true;
|
||||
xdg.configFile."wofi" = {
|
||||
|
||||
Reference in New Issue
Block a user