swww -> awww

This commit is contained in:
EdenQwQ 2026-02-21 12:24:04 +08:00
parent 8275c96e4f
commit ce73753052
9 changed files with 143 additions and 68 deletions

View file

@ -9,7 +9,7 @@ let
niri-autostart = pkgs.writeShellApplication {
name = "niri-autostart";
runtimeInputs = with pkgs; [
swww
awww
mihomo
wlsunset
systemd
@ -26,20 +26,20 @@ let
killall swhks
swhks &
doas swhkd -c ~/.config/niri/swhkd/niri.swhkdrc &
swww kill
swww-daemon --namespace "background" &
swww-daemon --namespace "backdrop" &
# swww restore --namespace "background"
# swww restore --namespace "backdrop"
awww kill
awww-daemon --namespace "background" &
awww-daemon --namespace "backdrop" &
# awww restore --namespace "background"
# awww restore --namespace "backdrop"
mihomo -d ~/.config/clash &
wlsunset -s 00:00 -S 00:00 -t 5000 -T 5001 &
''
+ (
builtins.attrNames config.monitors
|> map (monitor: [
"swww img --namespace background -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-file)\""
"awww img --namespace background -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-file)\""
"sleep 0.2"
"swww img --namespace backdrop -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-blurred-file)\""
"awww img --namespace backdrop -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-blurred-file)\""
"sleep 0.2"
])
|> builtins.concatLists

View file

@ -115,7 +115,7 @@
];
layer-rules = [
{
matches = [ { namespace = "swww-daemonbackdrop"; } ];
matches = [ { namespace = "awww-daemonbackdrop"; } ];
place-within-backdrop = true;
}
{