meta: Disable vfr at the gamemode level

This fixes an issue where other applications would perform *worse* with
vfr disabled, notably srb2.
This commit is contained in:
Donovan Glover 2023-06-13 10:45:29 -04:00
parent 576a9727be
commit 3df3aa19f9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 8 additions and 3 deletions

View File

@ -201,7 +201,6 @@ let VARIABLES = import ../../src/variables.nix; in {
animate_manual_resizes = yes animate_manual_resizes = yes
animate_mouse_windowdragging = yes animate_mouse_windowdragging = yes
focus_on_activate = yes focus_on_activate = yes
vfr = no
} }
''; '';

View File

@ -54,8 +54,14 @@ let VARIABLES = import ./variables.nix; in {
}; };
custom = { custom = {
start = "${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode started.'"; start = /* bash */ ''
end = "${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode ended."; ${pkgs.hyprland}/bin/hyprctl keyword misc:vfr no
${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode started from host.'
'';
end = /* bash */ ''
${pkgs.hyprland}/bin/hyprctl keyword misc:vfr yes
${pkgs.libnotify}/bin/notify-send 'Note' 'gamemode ended from host.'
'';
}; };
}; };
}; };