mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-17 11:28:30 +01:00
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:
parent
576a9727be
commit
3df3aa19f9
@ -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
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
10
src/main.nix
10
src/main.nix
@ -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.'
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user