diff --git a/environment.d/wayland.conf b/environment.d/wayland.conf index 2f737e3..ac96add 100644 --- a/environment.d/wayland.conf +++ b/environment.d/wayland.conf @@ -1 +1,2 @@ ELECTRON_OZONE_PLATFORM_HINT=auto +_JAVA_AWT_WM_NONREPARENTING=1 diff --git a/niri/config.kdl b/niri/config.kdl index 86917e3..5363b32 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -75,3 +75,36 @@ binds { XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "+10%"; } XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "10%-"; } } + +// ── Window Rules ───────────────────────────────────────────────────────────── + +// Fullscreen games: no border, open fullscreen, enable VRR +window-rule { + match app-id="steam_app_" + open-fullscreen true + border { + off + } + focus-ring { + off + } + variable-refresh-rate true +} + +// Generic fullscreen request (any app asking to go fullscreen) +window-rule { + match is-focused=true + variable-refresh-rate true +} + +// RuneLite (Java app-id pattern - verify with: niri msg pick-window) +window-rule { + match app-id="^(net-runelite-client-RuneLite|runelite|RuneLite)$" + open-maximized true + border { + off + } + focus-ring { + off + } +}