mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-10 09:50:10 +02:00
feat: niri - blur
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user