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
|
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" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user