This commit is contained in:
mjallen18
2025-06-29 17:21:48 -05:00
parent 532c97cf00
commit 1cf7a7d96e
2 changed files with 36 additions and 13 deletions

View File

@@ -89,19 +89,41 @@ in
}; };
}; };
}; };
# user.services.polkit-gnome-authentication-agent-1 = { user = {
# description = "polkit-gnome-authentication-agent-1"; services = {
# wantedBy = [ "graphical-session.target" ]; reload-bing-wallpaper = {
# wants = [ "graphical-session.target" ]; enable = true;
# after = [ "graphical-session.target" ]; path = [
# serviceConfig = { pkgs.bash
# Type = "simple"; pkgs.jq
# ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; pkgs.curl
# Restart = "on-failure"; pkgs.hyprland
# RestartSec = 1; bing-wallpaper
# TimeoutStopSec = 10; ];
# }; script = ''
# }; bing-wallpaper
${pkgs.hyprland}/bin/hyprctl hyprpaper reload ,/run/wallpaper
'';
serviceConfig = {
Type = "oneshot";
};
};
};
# Create a timer to run the service periodically
timers = {
reload-bing-wallpaper = {
description = "Timer for reload-bing-wallpaper";
wantedBy = [ "timers.target" ];
# Timer configuration
timerConfig = {
OnCalendar = "daily"; # Check every day
Persistent = true; # Run immediately if last run was missed
Unit = "reload-bing-wallpaper.service";
};
};
};
};
extraConfig = '' extraConfig = ''
DefaultTimeoutStopSec=10s DefaultTimeoutStopSec=10s
''; '';

View File

@@ -19,6 +19,7 @@
gsettings-desktop-schemas gsettings-desktop-schemas
hyprcursor hyprcursor
hyprland hyprland
hyprpaper
hyprshot hyprshot
hyprsysteminfo hyprsysteminfo
kdePackages.qtmultimedia kdePackages.qtmultimedia