Commit 65e6aec

HPCesia <me@hpcesia.com>
2026-04-06 18:52:14
feat: update niri config
1 parent b3a2f38
Changed files (2)
modules
desktop
modules/desktop/de/custom/wm/niri/window-rules.nix
@@ -30,11 +30,16 @@
             title = "^Steam$"; # Only match the main Steam window
             app-id = "steam";
           }
+
           {app-id = "org.kde.kdenlive";}
           {
             app-id = "gimp";
             is-floating = false;
           }
+          {
+            title = "^WPS Office$"; # Only match the main WPS Office window
+            app-id = "wpsoffice";
+          }
         ];
         open-maximized = true;
       }
@@ -53,15 +58,16 @@
       # === Workspaces ===
       {
         matches = [
-          {app-id = "Alacritty";}
-          {app-id = "com.mitchellh.ghostty";}
-          {app-id = "foot";}
-          {app-id = "org.wezfurlong.wezterm";}
-
+          # Development
           {app-id = "code";}
           {app-id = "dev.zed.Zed";}
+
+          # Multimedia
+          {app-id = "org.kde.kdenlive";}
+          {app-id = "gimp";}
+          {app-id = "wpsoffice";}
         ];
-        open-on-workspace = "1dev";
+        open-on-workspace = "1work";
       }
       {
         matches = [
@@ -69,7 +75,7 @@
           {app-id = "chromium-browser";}
           {app-id = "floorp";}
         ];
-        open-on-workspace = "2network";
+        open-on-workspace = "2web";
       }
       {
         matches = [
@@ -84,21 +90,6 @@
         ];
         open-on-workspace = "3chat";
       }
-      {
-        matches = [
-          {app-id = "deadbeef";}
-          {app-id = "mpv";}
-        ];
-        open-on-workspace = "4media";
-      }
-      {
-        matches = [
-          {app-id = "readest";}
-          {app-id = "org.kde.okular";}
-          {app-id = "atril";}
-        ];
-        open-on-workspace = "5read";
-      }
       {
         matches = [
           {app-id = "org.prismlauncher.PrismLauncher";}
@@ -112,7 +103,7 @@
           {app-id = "starrail.exe";}
           {app-id = "zenlesszonezero.exe";}
         ];
-        open-on-workspace = "6game";
+        open-on-workspace = "4game";
       }
     ];
   };
modules/desktop/de/custom/wm/niri/workspaces.nix
@@ -1,12 +1,10 @@
 {
   flake.modules.homeManager.wm-niri = _: {
     programs.niri.settings.workspaces = {
-      "1dev" = {};
-      "2network" = {};
+      "1work" = {};
+      "2web" = {};
       "3chat" = {};
-      "4media" = {};
-      "5read" = {};
-      "6game" = {};
+      "4game" = {};
     };
   };
 }