From 0eace3f336999fcfc8e19d122afaa73517670e97 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 28 Mar 2025 23:34:51 +0100 Subject: [PATCH] more quirks!!! --- modules/desktop/home/niri/quirks.nix | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/modules/desktop/home/niri/quirks.nix b/modules/desktop/home/niri/quirks.nix index 9f92af1..879918a 100644 --- a/modules/desktop/home/niri/quirks.nix +++ b/modules/desktop/home/niri/quirks.nix @@ -1,8 +1,9 @@ {...}: { programs.niri.settings = { window-rules = [ - # handle steam grabbing focus 1000 times on startup { + # handle steam grabbing focus 1000 times on startup + matches = [ { app-id = "steam"; @@ -10,6 +11,31 @@ ]; open-focused = false; } + { + # position steam notifs correctly: https://github.com/YaLTeR/niri/wiki/Application-Issues + + matches = [ + { + app-id = "steam"; + title = "^notificationtoasts_\\d+desktop$"; + } + ]; + default-floating-position = { + x = 10; + y = 10; + relative-to = "bottom-right"; + }; + } + { + matches = [ + { + title = "Guild Wars 2"; + app-id = "steam_app_1284210"; + } + ]; + border.enable = false; + shadow.enable = false; + } ]; # fix electron apps not doing wayland