start wallpaper services on graphical-session

This commit is contained in:
Adithya 2024-04-22 10:38:40 +05:30
parent 49872b576f
commit 08c38bfbab
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 9 additions and 0 deletions

View file

@ -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";

View file

@ -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";