Commit 66e9fae

HPCesia <me@hpcesia.com>
2026-04-16 14:13:18
feat: niri blur
1 parent 5383250
Changed files (3)
modules
core
desktop
de
custom
modules/core/stylix.nix
@@ -61,10 +61,10 @@
       # '';
       image = inputImage;
       opacity = {
-        applications = 1.0;
+        applications = 0.9;
         desktop = 0.9;
         popups = 0.9;
-        terminal = 0.9;
+        terminal = 1.0;
       };
     };
   };
modules/desktop/de/custom/wm/niri/config/config.kdl
@@ -6,11 +6,12 @@ workspace "2web"
 workspace "3chat"
 workspace "4game"
 
+include "nix/misc.kdl"
+
 include "keybinding.kdl"
 include "layout.kdl"
 include "recent-windows.kdl"
 include "window-rules.kdl"
 
 // KDL config generated by Nix
-include "nix/misc.kdl"
 include "nix/extra.kdl"
modules/desktop/de/custom/wm/niri/config/window-rules.kdl
@@ -4,6 +4,32 @@ window-rule {
   geometry-corner-radius 15.000000 15.000000 15.000000 15.000000
   clip-to-geometry true
   tiled-state true
+  background-effect {
+    blur true
+  }
+}
+
+// No opacity for a11y
+window-rule {
+  match is-window-cast-target=true
+
+  // Reader
+  match app-id="firefox"
+  match app-id="chromium-browser"
+  match app-id="floorp"
+  match app-id="thunderbird"
+
+  // Multi Media
+  match app-id="org.kde.kdenlive"
+  match app-id="gimp"
+  match app-id="org.inkscape.Inkscape"
+  match app-id="wpsoffice"
+  match app-id="blender"
+  match app-id="mpv"
+  match app-id="org.gnome.Loupe"
+  match app-id="atril"
+
+  opacity 1.0
 }
 
 // Maximize