Regenerated

This commit is contained in:
2026-03-28 22:33:29 +00:00
parent 8881a4a8b8
commit c2521473b0
3 changed files with 309 additions and 309 deletions
+295 -295
View File
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -2365,30 +2365,30 @@ in
swww
waypaper
jq
rsync
];
############################
# Systemd timer + service for wallpapers
############################
systemd.user.services.wallpaperUpdater = {
description = "Copy wallpapers and set them per workspace every 15 minutes";
description = "Copy changed wallpapers and set them per workspace every 15 minutes";
after = [ "network.target" ];
wants = [];
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = ''
# Ensure destination exists
mkdir -p ${wallpaperDst}
# Copy wallpapers from flake
cp -r ${flakeRoot}/assets/traveldroid/Wallpapers/* ${wallpaperDst}/
chown -R ${username}:${username} ${wallpaperDst}
# Copy only updated files using rsync
rsync -au --chmod=ugo+rx ${flakeRoot}/assets/traveldroid/Wallpapers/ ${wallpaperDst}/
# Ensure the script is executable
chmod +x ${wallpaperDst}/set-wallpapers-per-workspace.sh
# Run the wallpaper script
${wallpaperDst}/set-wallpapers-per-workspace.sh
'';
# Optional: restart if it fails
serviceConfig.Restart = "on-failure";
};
@@ -2396,8 +2396,8 @@ in
description = "Run wallpaperUpdater service every 15 minutes";
timerConfig.OnUnitActiveSec = "15min";
timerConfig.Persistent = true;
wantedBy = [ "timers.target" ];
unit = "wallpaperUpdater.service";
wantedBy = [ "timers.target" ];
};
}
#+END_SRC
@@ -14,30 +14,30 @@ in
swww
waypaper
jq
rsync
];
############################
# Systemd timer + service for wallpapers
############################
systemd.user.services.wallpaperUpdater = {
description = "Copy wallpapers and set them per workspace every 15 minutes";
description = "Copy changed wallpapers and set them per workspace every 15 minutes";
after = [ "network.target" ];
wants = [];
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = ''
# Ensure destination exists
mkdir -p ${wallpaperDst}
# Copy wallpapers from flake
cp -r ${flakeRoot}/assets/traveldroid/Wallpapers/* ${wallpaperDst}/
chown -R ${username}:${username} ${wallpaperDst}
# Copy only updated files using rsync
rsync -au --chmod=ugo+rx ${flakeRoot}/assets/traveldroid/Wallpapers/ ${wallpaperDst}/
# Ensure the script is executable
chmod +x ${wallpaperDst}/set-wallpapers-per-workspace.sh
# Run the wallpaper script
${wallpaperDst}/set-wallpapers-per-workspace.sh
'';
# Optional: restart if it fails
serviceConfig.Restart = "on-failure";
};
@@ -45,7 +45,7 @@ in
description = "Run wallpaperUpdater service every 15 minutes";
timerConfig.OnUnitActiveSec = "15min";
timerConfig.Persistent = true;
wantedBy = [ "timers.target" ];
unit = "wallpaperUpdater.service";
wantedBy = [ "timers.target" ];
};
}