feat(niri): enable on-demand VRR for games

Turn on adaptive sync at the output only when a game window opts in, keeping desktop compositing fixed-rate to avoid idle/low-load VRR flicker. The Steam/Proton game rule enables VRR alongside the fullscreen rule.

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
Ryan Yin committed 2026-10-30 00:47:51 +08:00
1 parent 005627d883
commit def7d8f754
2 files changed
+6

No files matched your search

+1
View File
@@ -90,6 +90,7 @@ window-rule {
exclude title="^(公告|Announcement|Notice)$"
open-on-workspace "4entertainment"
open-fullscreen true
variable-refresh-rate true
}
window-rule {
match app-id="heroic"
+5
View File
@@ -28,6 +28,11 @@ output "Beihai Century Joint Innovation Technology Co.,Ltd P32A2V 0000000000000"
// (this panel's 120 Hz mode, for example, is 119.880, not 120).
mode "3840x2160@144.000"
// Adaptive sync only while a game window requests it. The desktop then
// stays fixed-rate, avoiding VRR flicker during low-load desktop work.
// The game window rule below opts in with variable-refresh-rate true.
variable-refresh-rate on-demand=true
// Position of the output in the global coordinate space.
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
// The cursor can only move between directly adjacent outputs.