change wallpaper every 10 minutes?
This commit is contained in:
parent
96b69f7760
commit
4810350e22
1 changed files with 20 additions and 9 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue