Regenerated

This commit is contained in:
2026-03-26 14:24:05 +00:00
parent 0257eb72d5
commit cc5d6448af
3 changed files with 15 additions and 12 deletions
+2 -6
View File
@@ -805,17 +805,13 @@ in
systemd.user.services.swww-init = {
Unit = {
Description = "Initialize wallpaper with swww";
Description = "Initialize wallpapers per workspace";
After = [ "swww-daemon.service" ];
};
Service = {
Type = "oneshot";
ExecStart = ''
${pkgs.swww}/bin/swww img ${wallpaperDst} --transition-type fade slide blend zoom wipe cube fade-zoom slide-zoom
'';
ExecStart = "${wallpaperDst}/set-wallpapers-per-workspace.sh";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
WALLS=("${HOME}/Wallpapers"/*)
NUM_WALLS=${#WALLS[@]}
# Get workspace IDs
WS_IDS=($(hyprctl workspaces -j | jq -r '.[].id'))
for i in "${!WS_IDS[@]}"; do
WALL="${WALLS[$((i % NUM_WALLS))]}"
swww img "$WALL" --workspace "${WS_IDS[$i]}" --transition-type fade slide blend zoom wipe cube fade-zoom slide-zoom
done
@@ -81,17 +81,13 @@ in
systemd.user.services.swww-init = {
Unit = {
Description = "Initialize wallpaper with swww";
Description = "Initialize wallpapers per workspace";
After = [ "swww-daemon.service" ];
};
Service = {
Type = "oneshot";
ExecStart = ''
${pkgs.swww}/bin/swww img ${wallpaperDst} --transition-type fade slide blend zoom wipe cube fade-zoom slide-zoom
'';
ExecStart = "${wallpaperDst}/set-wallpapers-per-workspace.sh";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};