feat: niri - blur

This commit is contained in:
Ryan Yin
2026-05-03 18:38:34 +08:00
parent 788f3ecd0c
commit d3a2c49822
4 changed files with 19 additions and 1 deletions

View File

@@ -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";
};

View File

@@ -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

View File

@@ -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",

View File

@@ -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