mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-18 13:47: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'";
|
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 = {
|
mouse = {
|
||||||
hide-when-typing = "yes";
|
hide-when-typing = "yes";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
macos_show_window_title_in = "none";
|
macos_show_window_title_in = "none";
|
||||||
|
|
||||||
background_opacity = "0.93";
|
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
|
macos_option_as_alt = true; # Option key acts as Alt on macOS
|
||||||
enable_audio_bell = false;
|
enable_audio_bell = false;
|
||||||
tab_bar_edge = "top"; # tab bar on top
|
tab_bar_edge = "top"; # tab bar on top
|
||||||
|
|||||||
@@ -99,6 +99,7 @@
|
|||||||
"left": [
|
"left": [
|
||||||
{
|
{
|
||||||
"colorizeSystemIcon": "none",
|
"colorizeSystemIcon": "none",
|
||||||
|
"colorizeSystemText": "none",
|
||||||
"customIconPath": "",
|
"customIconPath": "",
|
||||||
"enableColorization": false,
|
"enableColorization": false,
|
||||||
"icon": "rocket",
|
"icon": "rocket",
|
||||||
@@ -209,6 +210,7 @@
|
|||||||
{
|
{
|
||||||
"colorizeDistroLogo": false,
|
"colorizeDistroLogo": false,
|
||||||
"colorizeSystemIcon": "none",
|
"colorizeSystemIcon": "none",
|
||||||
|
"colorizeSystemText": "none",
|
||||||
"customIconPath": "",
|
"customIconPath": "",
|
||||||
"enableColorization": false,
|
"enableColorization": false,
|
||||||
"icon": "noctalia",
|
"icon": "noctalia",
|
||||||
|
|||||||
@@ -2,21 +2,31 @@
|
|||||||
// Find more information on the wiki:
|
// Find more information on the wiki:
|
||||||
// https://yalter.github.io/niri/Configuration:-Window-Rules
|
// https://yalter.github.io/niri/Configuration:-Window-Rules
|
||||||
|
|
||||||
// Terminal applications - open in workspace 1
|
// Terminal applications - open in workspace 1, with blur
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="foot"
|
match app-id="foot"
|
||||||
open-on-workspace "1terminal"
|
open-on-workspace "1terminal"
|
||||||
open-maximized true
|
open-maximized true
|
||||||
|
// foot >= 1.26 uses native blur via ext-background-effect,
|
||||||
|
// no compositor-side blur needed
|
||||||
}
|
}
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="Alacritty"
|
match app-id="Alacritty"
|
||||||
open-on-workspace "1terminal"
|
open-on-workspace "1terminal"
|
||||||
open-maximized true
|
open-maximized true
|
||||||
|
background-effect {
|
||||||
|
blur true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="com.mitchellh.ghostty"
|
match app-id="com.mitchellh.ghostty"
|
||||||
open-on-workspace "1terminal"
|
open-on-workspace "1terminal"
|
||||||
open-maximized true
|
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
|
// Web browsers - open in workspace 2
|
||||||
|
|||||||
Reference in New Issue
Block a user