Regenerated
This commit is contained in:
@@ -5,6 +5,7 @@ let
|
||||
homeDir = "/home/${username}";
|
||||
wallpaperSrc = "${flakeRoot}/assets/traveldroid/Wallpapers";
|
||||
wallpaperDst = "${homeDir}/Wallpapers";
|
||||
randoScript = "${homeDir}/Wallpapers/scripts/randomizeWallpapers.sh";
|
||||
in
|
||||
{
|
||||
# Make bash available
|
||||
@@ -43,17 +44,27 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# User service to run the script
|
||||
# User service to run the script that copies the Wallpaperstuff
|
||||
systemd.user.services.copyWallpapers = {
|
||||
description = "Copy wallpapers from repo to ~/Wallpapers";
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${homeDir}/copy-wallpapers.sh";
|
||||
Restart = "no";
|
||||
WorkingDirectory = homeDir;
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
# User service to randomize wallpapers
|
||||
systemd.user.services.copyWallpapers = {
|
||||
description = "Copy wallpapers from repo to ~/Wallpapers";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${randoScript}";
|
||||
Restart = "no";
|
||||
WorkingDirectory = homeDir;
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
@@ -65,12 +76,10 @@ in
|
||||
description = "Dynamic wallpapers per workspace for Hyprland";
|
||||
after = [ "graphical-session.target" ];
|
||||
wants = [ "graphical-session.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${homeDir}/Wallpapers/scripts/workspace-wallpapers.sh";
|
||||
Restart = "always";
|
||||
};
|
||||
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user