mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-02-22 12:55:33 +08:00
niri blur
This commit is contained in:
parent
9f15e013e2
commit
e1fc70044c
6 changed files with 64 additions and 34 deletions
40
flake.lock
generated
40
flake.lock
generated
|
|
@ -755,18 +755,20 @@
|
|||
"niri": {
|
||||
"inputs": {
|
||||
"niri-stable": "niri-stable",
|
||||
"niri-unstable": "niri-unstable",
|
||||
"niri-unstable": [
|
||||
"niri-unstable"
|
||||
],
|
||||
"nixpkgs": "nixpkgs_11",
|
||||
"nixpkgs-stable": "nixpkgs-stable",
|
||||
"xwayland-satellite-stable": "xwayland-satellite-stable",
|
||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1766209779,
|
||||
"narHash": "sha256-aYOnrT1M5xxqn1Ka66jh9JspE9GejyX16bgA2Fex9dQ=",
|
||||
"lastModified": 1771514840,
|
||||
"narHash": "sha256-t3WbZvwoDj/75YDX/nwkZuxanZLZaWr9meSfKswaN6g=",
|
||||
"owner": "sodiboo",
|
||||
"repo": "niri-flake",
|
||||
"rev": "3a174fe817fc39f09267a464d0ba93606aac7277",
|
||||
"rev": "4f69ab280e9bb34e2c0b67fdfa6f0978a170ef56",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -795,15 +797,16 @@
|
|||
"niri-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1766207058,
|
||||
"narHash": "sha256-7E45lo+Yt4zaOlrCQWGSGwvFKzS5MxlP0gPCkggy+8w=",
|
||||
"owner": "YaLTeR",
|
||||
"lastModified": 1771496053,
|
||||
"narHash": "sha256-mxterEpNc6oDI1oY4+OdWXiLTpSrKBLWKWhAW503GFc=",
|
||||
"owner": "niri-wm",
|
||||
"repo": "niri",
|
||||
"rev": "7a237e519c69ec493851ffac169abb3aa917a7b3",
|
||||
"rev": "3d1cf38bf3ba9bd0208a6452bc4453ad4df79fe2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "YaLTeR",
|
||||
"owner": "niri-wm",
|
||||
"ref": "wip/branch",
|
||||
"repo": "niri",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
@ -946,11 +949,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1765838191,
|
||||
"narHash": "sha256-m5KWt1nOm76ILk/JSCxBM4MfK3rYY7Wq9/TZIIeGnT8=",
|
||||
"lastModified": 1771419570,
|
||||
"narHash": "sha256-bxAlQgre3pcQcaRUm/8A0v/X8d2nhfraWSFqVmMcBcU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c6f52ebd45e5925c188d1a20119978aa4ffd5ef6",
|
||||
"rev": "6d41bc27aaf7b6a3ba6b169db3bd5d6159cfaa47",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -1014,11 +1017,11 @@
|
|||
},
|
||||
"nixpkgs_11": {
|
||||
"locked": {
|
||||
"lastModified": 1766070988,
|
||||
"narHash": "sha256-G/WVghka6c4bAzMhTwT2vjLccg/awmHkdKSd2JrycLc=",
|
||||
"lastModified": 1771369470,
|
||||
"narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c6245e83d836d0433170a16eb185cefe0572f8b8",
|
||||
"rev": "0182a361324364ae3f436a63005877674cf45efb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -1460,6 +1463,7 @@
|
|||
"nh": "nh",
|
||||
"nil": "nil",
|
||||
"niri": "niri",
|
||||
"niri-unstable": "niri-unstable",
|
||||
"nix-matlab": "nix-matlab",
|
||||
"nixGL": "nixGL",
|
||||
"nixd": "nixd",
|
||||
|
|
@ -1814,11 +1818,11 @@
|
|||
"xwayland-satellite-unstable": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1765935116,
|
||||
"narHash": "sha256-lNyckAdrhNKXsi9pNOBYajntNFlWs+BITVoIZuNuwX0=",
|
||||
"lastModified": 1771195969,
|
||||
"narHash": "sha256-BUE41HjLIGPjq3U8VXPjf8asH8GaMI7FYdgrIHKFMXA=",
|
||||
"owner": "Supreeeme",
|
||||
"repo": "xwayland-satellite",
|
||||
"rev": "979eab242e60cf481a31d9de508a1bdaf2dcf7d4",
|
||||
"rev": "536bd32efc935bf876d6de385ec18a1b715c9358",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
11
flake.nix
11
flake.nix
|
|
@ -53,14 +53,13 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
# niri-unstable = {
|
||||
# url = "github:YalTeR/niri";
|
||||
# # url = "github:visualglitch91/niri/feat/blur-lite";
|
||||
# flake = false;
|
||||
# };
|
||||
niri-unstable = {
|
||||
url = "github:niri-wm/niri/wip/branch";
|
||||
flake = false;
|
||||
};
|
||||
niri = {
|
||||
url = "github:sodiboo/niri-flake";
|
||||
# inputs.niri-unstable.follows = "niri-unstable";
|
||||
inputs.niri-unstable.follows = "niri-unstable";
|
||||
};
|
||||
nur.url = "github:nix-community/NUR";
|
||||
stylix = {
|
||||
|
|
|
|||
|
|
@ -98,13 +98,13 @@
|
|||
matches = [
|
||||
{ is-focused = true; }
|
||||
];
|
||||
opacity = 0.95;
|
||||
opacity = 0.92;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{ is-focused = false; }
|
||||
];
|
||||
opacity = 0.85;
|
||||
opacity = 0.75;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
|
|
|
|||
|
|
@ -4,8 +4,40 @@ let
|
|||
extraConfig =
|
||||
# kdl
|
||||
''
|
||||
blur {
|
||||
passes 3
|
||||
offset 3
|
||||
noise 0.02
|
||||
saturation 1.5
|
||||
}
|
||||
window-rule {
|
||||
background-effect {
|
||||
xray true
|
||||
blur {
|
||||
on
|
||||
}
|
||||
}
|
||||
}
|
||||
layer-rule {
|
||||
match namespace="launcher"
|
||||
background-effect {
|
||||
xray false
|
||||
blur {
|
||||
on
|
||||
}
|
||||
}
|
||||
}
|
||||
layer-rule {
|
||||
match namespace="noctalia-bar-content-*"
|
||||
background-effect {
|
||||
xray false
|
||||
blur {
|
||||
on
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
recent-windows {
|
||||
// off
|
||||
open-delay-ms 150
|
||||
|
||||
highlight {
|
||||
|
|
@ -43,9 +75,6 @@ let
|
|||
# layout {
|
||||
# blur {
|
||||
# on
|
||||
# passes 2
|
||||
# radius 5
|
||||
# noise 0.1
|
||||
# }
|
||||
# ''
|
||||
]
|
||||
|
|
|
|||
|
|
@ -87,8 +87,6 @@
|
|||
}
|
||||
{
|
||||
id = "ControlCenter";
|
||||
customIconPath = "";
|
||||
icon = "";
|
||||
useDistroLogo = false;
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ with config.lib.stylix.colors;
|
|||
prompt-text = "Can I have a"
|
||||
prompt-padding = 15
|
||||
|
||||
background-color = #${base00}
|
||||
background-color = #${base00}dd
|
||||
text-color = #${base05}
|
||||
|
||||
prompt-color = #${base00}
|
||||
|
|
@ -77,7 +77,7 @@ with config.lib.stylix.colors;
|
|||
# font = Comic Mono Nerd Font
|
||||
font = Hug Me Tight
|
||||
prompt-padding = 15
|
||||
background-color = #${base00}aa
|
||||
background-color = #${base00}99
|
||||
text-color = #${base05}
|
||||
prompt-color = #${base0B}
|
||||
selection-color = #${base0E}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue