sway: only enable vrr on fullscreen

This commit is contained in:
Leonardo Eugênio 2024-06-04 01:37:46 -03:00
parent 43dd44d237
commit 36a717072a
3 changed files with 45 additions and 1 deletions

View file

@ -69,7 +69,7 @@ in
};
output = {
"*" = {
adaptive_sync = "enabled";
adaptive_sync = "off";
bg = "${theme.background} fill";
mode = "1920x1080@144.000Hz";
};
@ -116,6 +116,21 @@ in
indicator = true;
};
systemd.user.services.vrr-fullscreen = {
Unit = {
Description = "Enable VRR for fullscreen windows";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${lib.getExe pkgs.vrr-fullscreen}";
Restart = "on-failure";
};
Install = {
WantedBy = [ "sway-session.target" ];
};
};
xdg.configFile."OpenTabletDriver/settings.json".source = ./open-tablet-driver.json;
home.packages = with pkgs; [