mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 01:38:02 +02:00
hyprland(swww): Randomize background on all monitors
This commit is contained in:
parent
1c7aab6cc3
commit
f4b0c41289
@ -32,12 +32,14 @@ in
|
|||||||
--transition-step 200 \
|
--transition-step 200 \
|
||||||
--transition-duration 1.5 \
|
--transition-duration 1.5 \
|
||||||
--transition-fps 240 \
|
--transition-fps 240 \
|
||||||
"$argv"
|
--outputs "$argv[1]" \
|
||||||
|
"$argv[2]"
|
||||||
else
|
else
|
||||||
swww img \
|
swww img \
|
||||||
--transition-type simple \
|
--transition-type simple \
|
||||||
--transition-step 255 \
|
--transition-step 255 \
|
||||||
"$argv"
|
--outputs "$argv[1]" \
|
||||||
|
"$argv[2]"
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@ -48,7 +50,10 @@ in
|
|||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
cd ~/.config/hypr
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user