start wallpaper services on graphical-session
This commit is contained in:
parent
49872b576f
commit
08c38bfbab
2 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
|||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.swww}/bin/swww-daemon";
|
||||
Restart = "on-failure";
|
||||
|
|
|
@ -12,6 +12,9 @@ in
|
|||
After = [ "graphical-session-pre.target" ];
|
||||
Wants = "swww-daemon.service";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${change-wallpaper}";
|
||||
|
@ -21,6 +24,9 @@ in
|
|||
Unit = {
|
||||
Description = "Change Wallpaper";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Timer = {
|
||||
OnStartupSec = "10min";
|
||||
OnUnitActiveSec = "10min";
|
||||
|
|
Loading…
Reference in a new issue