2024-04-21 23:00:50 +05:30
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
pictures = "${config.xdg.userDirs.pictures}";
|
|
|
|
change-wallpaper = "${pkgs.scripts}/bin/chpaper ${pictures}/Wallpapers";
|
|
|
|
in
|
|
|
|
{
|
2024-04-21 23:45:36 +05:30
|
|
|
systemd.user = {
|
|
|
|
services.wallpaper = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Change Wallpaper";
|
|
|
|
PartOf = [ "graphical-session.target" ];
|
|
|
|
After = [ "graphical-session-pre.target" ];
|
|
|
|
Wants = "swww-daemon.service";
|
|
|
|
};
|
2024-04-22 10:38:40 +05:30
|
|
|
Install = {
|
|
|
|
WantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
2024-04-21 23:45:36 +05:30
|
|
|
Service = {
|
|
|
|
Type = "oneshot";
|
|
|
|
ExecStart = "${change-wallpaper}";
|
|
|
|
};
|
2024-04-21 23:00:50 +05:30
|
|
|
};
|
2024-04-21 23:45:36 +05:30
|
|
|
timers.wallpaper = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Change Wallpaper";
|
|
|
|
};
|
2024-04-22 10:38:40 +05:30
|
|
|
Install = {
|
2024-04-26 10:20:45 +05:30
|
|
|
WantedBy = [ "default.target" ];
|
2024-04-22 10:38:40 +05:30
|
|
|
};
|
2024-04-21 23:45:36 +05:30
|
|
|
Timer = {
|
|
|
|
OnStartupSec = "10min";
|
|
|
|
OnUnitActiveSec = "10min";
|
|
|
|
};
|
2024-04-21 23:00:50 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|