fix(niri): fractional scaling
This works in latest unstable niri
This commit is contained in:
@@ -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
|
||||||
|
''
|
||||||
|
))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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; }) [
|
||||||
|
|||||||
@@ -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" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user