Commit 686c98e

HPCesia <me@hpcesia.com>
2026-01-05 16:16:29
feat: update niri window rules
1 parent 4c9d4bd
Changed files (1)
modules
desktop
desktop-environment
discrete
modules/desktop/desktop-environment/discrete/wm/niri/window-rules.nix
@@ -39,6 +39,17 @@
         open-maximized = true;
       }
 
+      {
+        # Floating
+        matches = [
+          {
+            app-id = "QQ";
+            title = "^(图片查看器|文件管理器|收藏|聊天记录管理|设置|群相册 - .*?)$";
+          }
+        ];
+        open-floating = true;
+      }
+
       # === Workspaces ===
       {
         matches = [
@@ -91,7 +102,7 @@
       {
         matches = [
           {app-id = "org.prismlauncher.PrismLauncher";}
-          {app-id = "^Minecraft\* 1\.[0-9]*\.[0-9]*$";}
+          {app-id = "^Minecraft\\* 1\\.[0-9]*\\.[0-9]*$";}
           {app-id = "steam";}
           {app-id = "net.lutris.Lutris";}
           {app-id = "moe.launcher.an-anime-game-launcher";}