change wallpaper every 10 minutes?

This commit is contained in:
Adithya 2024-04-21 23:45:36 +05:30
parent 96b69f7760
commit 4810350e22
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -4,16 +4,27 @@ let
change-wallpaper = "${pkgs.scripts}/bin/chpaper ${pictures}/Wallpapers";
in
{
systemd.user.services.wallpaper = {
Unit = {
Description = "Change Wallpaper";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session-pre.target" ];
Wants = "swww-daemon.service";
systemd.user = {
services.wallpaper = {
Unit = {
Description = "Change Wallpaper";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session-pre.target" ];
Wants = "swww-daemon.service";
};
Service = {
Type = "oneshot";
ExecStart = "${change-wallpaper}";
};
};
Service = {
Type = "oneshot";
ExecStart = "${change-wallpaper}";
timers.wallpaper = {
Unit = {
Description = "Change Wallpaper";
};
Timer = {
OnStartupSec = "10min";
OnUnitActiveSec = "10min";
};
};
};
}