Regenerated

This commit is contained in:
2026-03-29 21:14:24 +00:00
parent 5d15469a00
commit 1361879ac8
5 changed files with 298 additions and 445 deletions
@@ -5,7 +5,6 @@ let
homeDir = "/home/${username}";
wallpaperSrc = "${flakeRoot}/assets/traveldroid/Wallpapers";
wallpaperDst = "${homeDir}/Wallpapers";
scriptFile = "${homeDir}/Wallpapers/scripts/set-wallpapers.sh";
in
{
# Make bash available
@@ -60,38 +59,7 @@ in
};
############################
# User service to run wallpaper script/usr/bin/env bash
############################
systemd.user.services.wallpaperAtLogon = {
description = "Run wallpaper logon script";
after = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = scriptFile;
Restart = "no";
};
wantedBy = [ "default.target" ];
};
############################
# Timer to run the script at login and every 15 minutes
############################
systemd.user.timers.wallpaperAtLogonTimer = {
description = "Run wallpaper script at login and every 15 minutes";
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1min"; # run 1 minute after login
OnUnitActiveSec = "15min"; # repeat every 15 minutes
Persistent = true; # catch up missed runs
};
};
############################
# Random background per workspace at boot
# Random background per workspace at logon
############################
systemd.user.services.workspaceWallpapers = {