update niri

This commit is contained in:
EdenQwQ 2025-06-09 23:59:47 +08:00
parent 6b144d0da1
commit b7fe63c516
3 changed files with 10 additions and 5 deletions

6
flake.lock generated
View file

@ -771,11 +771,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1749019222,
"narHash": "sha256-Zz2QkGVkK75iAaOBTT5+ILCg/l2HhrxzPJMd7Jr/O28=",
"lastModified": 1749474820,
"narHash": "sha256-hf5eCZ0bbqwOKPvPKn8Rutwj+xs3GhAfB0AjGa8tIEM=",
"owner": "YalTeR",
"repo": "niri",
"rev": "9858599ac12ab9592c08e062b2301e7c24429c81",
"rev": "a18d24fc24d8b17242e336ccf39fcbe91e8161fd",
"type": "github"
},
"original": {

View file

@ -110,10 +110,11 @@ let
if not active_workspace_is_empty:
wallpaper = blurred_wallpaper
real_wallpaper = os.path.realpath(wallpaper)
if init:
set_backdrop_wallpaper(active_workspace_monitor, blurred_wallpaper)
if current_wallpaper == real_wallpaper and not init:
return
set_wallpaper(active_workspace_monitor, wallpaper)
set_backdrop_wallpaper(active_workspace_monitor, blurred_wallpaper)
def change_wallpaper(init=False):

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ pkgs, config, ... }:
with config.lib.stylix.colors.withHashtag;
let
extraConfig =
@ -8,6 +8,10 @@ let
match namespace="wallpaper"
place-within-backdrop true
}
xwayland-satellite {
path "${pkgs.xwayland-satellite}/bin/xwayland-satellite"
}
'';
finalNiriConfig =
builtins.replaceStrings