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 swww
waypaper waypaper
jq jq
rsync
]; ];
############################ ############################
# Systemd timer + service for wallpapers # Systemd timer + service for wallpapers
############################ ############################
systemd.user.services.wallpaperUpdater = { 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" ]; after = [ "network.target" ];
wants = [];
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = '' serviceConfig.ExecStart = ''
# Ensure destination exists # Ensure destination exists
mkdir -p ${wallpaperDst} mkdir -p ${wallpaperDst}
# Copy wallpapers from flake # Copy only updated files using rsync
cp -r ${flakeRoot}/assets/traveldroid/Wallpapers/* ${wallpaperDst}/ rsync -au --chmod=ugo+rx ${flakeRoot}/assets/traveldroid/Wallpapers/ ${wallpaperDst}/
chown -R ${username}:${username} ${wallpaperDst}
# Ensure the script is executable
chmod +x ${wallpaperDst}/set-wallpapers-per-workspace.sh chmod +x ${wallpaperDst}/set-wallpapers-per-workspace.sh
# Run the wallpaper script # Run the wallpaper script
${wallpaperDst}/set-wallpapers-per-workspace.sh ${wallpaperDst}/set-wallpapers-per-workspace.sh
''; '';
# Optional: restart if it fails
serviceConfig.Restart = "on-failure"; serviceConfig.Restart = "on-failure";
}; };
@@ -2396,8 +2396,8 @@ in
description = "Run wallpaperUpdater service every 15 minutes"; description = "Run wallpaperUpdater service every 15 minutes";
timerConfig.OnUnitActiveSec = "15min"; timerConfig.OnUnitActiveSec = "15min";
timerConfig.Persistent = true; timerConfig.Persistent = true;
wantedBy = [ "timers.target" ];
unit = "wallpaperUpdater.service"; unit = "wallpaperUpdater.service";
wantedBy = [ "timers.target" ];
}; };
} }
#+END_SRC #+END_SRC
@@ -14,30 +14,30 @@ in
swww swww
waypaper waypaper
jq jq
rsync
]; ];
############################ ############################
# Systemd timer + service for wallpapers # Systemd timer + service for wallpapers
############################ ############################
systemd.user.services.wallpaperUpdater = { 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" ]; after = [ "network.target" ];
wants = [];
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = '' serviceConfig.ExecStart = ''
# Ensure destination exists # Ensure destination exists
mkdir -p ${wallpaperDst} mkdir -p ${wallpaperDst}
# Copy wallpapers from flake # Copy only updated files using rsync
cp -r ${flakeRoot}/assets/traveldroid/Wallpapers/* ${wallpaperDst}/ rsync -au --chmod=ugo+rx ${flakeRoot}/assets/traveldroid/Wallpapers/ ${wallpaperDst}/
chown -R ${username}:${username} ${wallpaperDst}
# Ensure the script is executable
chmod +x ${wallpaperDst}/set-wallpapers-per-workspace.sh chmod +x ${wallpaperDst}/set-wallpapers-per-workspace.sh
# Run the wallpaper script # Run the wallpaper script
${wallpaperDst}/set-wallpapers-per-workspace.sh ${wallpaperDst}/set-wallpapers-per-workspace.sh
''; '';
# Optional: restart if it fails
serviceConfig.Restart = "on-failure"; serviceConfig.Restart = "on-failure";
}; };
@@ -45,7 +45,7 @@ in
description = "Run wallpaperUpdater service every 15 minutes"; description = "Run wallpaperUpdater service every 15 minutes";
timerConfig.OnUnitActiveSec = "15min"; timerConfig.OnUnitActiveSec = "15min";
timerConfig.Persistent = true; timerConfig.Persistent = true;
wantedBy = [ "timers.target" ];
unit = "wallpaperUpdater.service"; unit = "wallpaperUpdater.service";
wantedBy = [ "timers.target" ];
}; };
} }