refresh rate updates

This commit is contained in:
Rachel Lambda Samuelsson 2024-12-03 23:55:42 +01:00
parent acf9c06b4f
commit d6aa921437
3 changed files with 14 additions and 4 deletions

View File

@ -90,6 +90,7 @@
user = "rachel"; user = "rachel";
steam = true; steam = true;
mcsr = false; mcsr = false;
rate = 60;
i3-plasma = true; i3-plasma = true;
}; };
}; };
@ -100,6 +101,7 @@
user = "rachel"; user = "rachel";
steam = true; steam = true;
mcsr = false; mcsr = false;
rate = 60;
i3-plasma = true; i3-plasma = true;
}; };
}; };
@ -110,6 +112,7 @@
user = "rachel"; user = "rachel";
steam = true; steam = true;
mcsr = true; mcsr = true;
rate = 180;
i3-plasma = false; i3-plasma = false;
}; };
}; };

View File

@ -1,9 +1,9 @@
{ ... }: { config, ... }:
{ {
services.picom = { services.picom = {
enable = true; enable = true;
backend = "glx"; backend = "glx";
settings.refresh-rate = "60"; settings.refresh-rate = config.rate;
vSync = true; vSync = false;
}; };
} }

View File

@ -72,13 +72,20 @@
# [Fix KWIN locking to 60Hz] # [Fix KWIN locking to 60Hz]
environment.sessionVariables = { environment.sessionVariables = {
KWIN_X11_NO_SYNC_TO_VBLANK = 1; KWIN_X11_NO_SYNC_TO_VBLANK = 1;
KWIN_X11_REFRESH_RATE = 144000; KWIN_X11_REFRESH_RATE = 180000;
KWIN_X11_FORCE_SOFTWARE_VSYNC = 1; KWIN_X11_FORCE_SOFTWARE_VSYNC = 1;
}; };
# [NETWORKING] # [NETWORKING]
networking.hostName = "computational"; networking.hostName = "computational";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }