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

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