From d3a2c4982227194588fa9be3c6e2f35fde53ed70 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 3 May 2026 18:38:34 +0800 Subject: [PATCH] feat: niri - blur --- home/base/gui/terminal/foot.nix | 5 +++++ home/base/gui/terminal/kitty.nix | 1 + home/linux/gui/base/noctalia/config/settings.json | 2 ++ home/linux/gui/niri/conf/windowrules.kdl | 12 +++++++++++- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/home/base/gui/terminal/foot.nix b/home/base/gui/terminal/foot.nix index c2f5167c..911ae57d 100644 --- a/home/base/gui/terminal/foot.nix +++ b/home/base/gui/terminal/foot.nix @@ -25,6 +25,11 @@ shell = "${pkgs.bash}/bin/bash --login -c 'nu --login --interactive'"; }; + colors-dark = { + alpha = 0.93; # background transparency + blur = true; # requires foot >= 1.26 and compositor support (e.g. niri v26.04+) + }; + mouse = { hide-when-typing = "yes"; }; diff --git a/home/base/gui/terminal/kitty.nix b/home/base/gui/terminal/kitty.nix index 0fbe90ce..73c59010 100644 --- a/home/base/gui/terminal/kitty.nix +++ b/home/base/gui/terminal/kitty.nix @@ -34,6 +34,7 @@ macos_show_window_title_in = "none"; background_opacity = "0.93"; + background_blur = 1; # requires kitty >= 0.46.2 and compositor support (e.g. niri v26.04+) macos_option_as_alt = true; # Option key acts as Alt on macOS enable_audio_bell = false; tab_bar_edge = "top"; # tab bar on top diff --git a/home/linux/gui/base/noctalia/config/settings.json b/home/linux/gui/base/noctalia/config/settings.json index 9af37696..776556e4 100644 --- a/home/linux/gui/base/noctalia/config/settings.json +++ b/home/linux/gui/base/noctalia/config/settings.json @@ -99,6 +99,7 @@ "left": [ { "colorizeSystemIcon": "none", + "colorizeSystemText": "none", "customIconPath": "", "enableColorization": false, "icon": "rocket", @@ -209,6 +210,7 @@ { "colorizeDistroLogo": false, "colorizeSystemIcon": "none", + "colorizeSystemText": "none", "customIconPath": "", "enableColorization": false, "icon": "noctalia", diff --git a/home/linux/gui/niri/conf/windowrules.kdl b/home/linux/gui/niri/conf/windowrules.kdl index d7b9a0f1..97842b58 100644 --- a/home/linux/gui/niri/conf/windowrules.kdl +++ b/home/linux/gui/niri/conf/windowrules.kdl @@ -2,21 +2,31 @@ // Find more information on the wiki: // https://yalter.github.io/niri/Configuration:-Window-Rules -// Terminal applications - open in workspace 1 +// Terminal applications - open in workspace 1, with blur window-rule { match app-id="foot" open-on-workspace "1terminal" open-maximized true + // foot >= 1.26 uses native blur via ext-background-effect, + // no compositor-side blur needed } window-rule { match app-id="Alacritty" open-on-workspace "1terminal" open-maximized true + background-effect { + blur true + } } window-rule { match app-id="com.mitchellh.ghostty" open-on-workspace "1terminal" open-maximized true + // Ghostty native blur via ext-background-effect coming in v1.4; + // use compositor-side blur until then + background-effect { + blur true + } } // Web browsers - open in workspace 2