From d129bc287b1b6b25ea6ab3ecfee2b0ec5ee43d1f Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 4 Apr 2025 17:20:08 +0200 Subject: [PATCH 1/3] enable baba-is-float for floating windows --- modules/desktop/home/niri/style.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/desktop/home/niri/style.nix b/modules/desktop/home/niri/style.nix index b12b202..c4dd1fa 100644 --- a/modules/desktop/home/niri/style.nix +++ b/modules/desktop/home/niri/style.nix @@ -49,6 +49,7 @@ matches = [{ is-floating = true; }]; + baba-is-float = true; shadow = { offset.y = 0; offset.x = 0; From 2de24d60b973d009a4c609553d6193a2ccb0c1c2 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 4 Apr 2025 17:20:26 +0200 Subject: [PATCH 2/3] more steam quirks (who would have thought...) --- modules/desktop/home/niri/quirks.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/desktop/home/niri/quirks.nix b/modules/desktop/home/niri/quirks.nix index 1f4eb31..7a9199e 100644 --- a/modules/desktop/home/niri/quirks.nix +++ b/modules/desktop/home/niri/quirks.nix @@ -4,29 +4,30 @@ window-rules = [ { # handle steam grabbing focus 1000 times on startup - matches = [ - {app-id = "steam";} - ]; - excludes = [ - {title = "(Guild Wars 2)";} + { + app-id = "steam"; + title = "Steam"; + } ]; open-focused = false; } { # position steam notifs correctly: https://github.com/YaLTeR/niri/wiki/Application-Issues - matches = [ { app-id = "steam"; - title = "^notificationtoasts_\\d+desktop$"; + title = "^notificationtoasts_[\\d]+_desktop$"; } ]; default-floating-position = { - x = 10; - y = 10; + x = 0; + y = 0; relative-to = "bottom-right"; }; + shadow.enable = false; + border.enable = false; + baba-is-float = false; } { matches = [ From 4c54a7b40b9e64fc97ba9c7acf0c92adc818e07b Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 4 Apr 2025 17:20:37 +0200 Subject: [PATCH 3/3] switch back to evince --- modules/media/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/media/default.nix b/modules/media/default.nix index 0829585..a3a8925 100644 --- a/modules/media/default.nix +++ b/modules/media/default.nix @@ -44,7 +44,7 @@ in vlc mpv - kdePackages.okular + evince nomacs jellyfin-media-player