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):