Regenerated
This commit is contained in:
+295
-295
File diff suppressed because it is too large
Load Diff
+7
-7
@@ -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" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user