1
0
forked from extern/nix-config

hyprland(swww): Randomize background on all monitors

This commit is contained in:
Donovan Glover 2023-11-19 06:37:21 -05:00
parent 1c7aab6cc3
commit f4b0c41289
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -32,12 +32,14 @@ in
--transition-step 200 \
--transition-duration 1.5 \
--transition-fps 240 \
"$argv"
--outputs "$argv[1]" \
"$argv[2]"
else
swww img \
--transition-type simple \
--transition-step 255 \
"$argv"
--outputs "$argv[1]" \
"$argv[2]"
end
'';
};
@ -48,7 +50,10 @@ in
#!/usr/bin/env fish
cd ~/.config/hypr
./set-bg.fish "$(random choice $(fd . /run/current-system/sw/share/backgrounds --follow -e jpg -e png))"
for monitor in (hyprctl monitors -j | jq -r '.[].name')
./set.fish "$monitor" "$(random choice $(fd . /run/current-system/sw/share/backgrounds --follow -e jpg -e png))"
end
'';
};