From 40f4e8172c0b32a30c8aea88c35d29b2cbe9c27a Mon Sep 17 00:00:00 2001 From: EdenQwQ Date: Fri, 17 Apr 2026 11:56:34 +0800 Subject: [PATCH] setup waydeeper for niri autostart --- home/programs/desktop/niri/autostart.nix | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/home/programs/desktop/niri/autostart.nix b/home/programs/desktop/niri/autostart.nix index bba4262..19d54b9 100644 --- a/home/programs/desktop/niri/autostart.nix +++ b/home/programs/desktop/niri/autostart.nix @@ -26,27 +26,27 @@ let killall swhks swhks & doas swhkd -c ~/.config/niri/swhkd/niri.swhkdrc & - # awww kill + awww kill # awww-daemon --namespace "background" & - # awww-daemon --namespace "backdrop" & + awww-daemon --namespace "backdrop" & # awww restore --namespace "background" - # awww restore --namespace "backdrop" + awww restore --namespace "backdrop" mihomo -d ~/.config/clash & wlsunset -s 00:00 -S 00:00 -t 5000 -T 5001 & sleep 0.2 '' - # + ( - # builtins.attrNames config.monitors - # |> map (monitor: [ - # "awww img --namespace background -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-file)\"" - # "sleep 0.2" - # "awww img --namespace backdrop -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-blurred-file)\"" - # "sleep 0.2" - # ]) - # |> builtins.concatLists - # |> builtins.concatStringsSep "\n" - # ) - # + "\n" + + ( + builtins.attrNames config.monitors + |> map (monitor: [ + # "awww img --namespace background -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-file)\"" + "sleep 0.2" + "awww img --namespace backdrop -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-blurred-file)\"" + "sleep 0.2" + ]) + |> builtins.concatLists + |> builtins.concatStringsSep "\n" + ) + + "\n" + ( if config.desktopShell == "caelestia" then # bash