stuff
This commit is contained in:
@@ -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
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
hyprcursor
|
hyprcursor
|
||||||
hyprland
|
hyprland
|
||||||
|
hyprpaper
|
||||||
hyprshot
|
hyprshot
|
||||||
hyprsysteminfo
|
hyprsysteminfo
|
||||||
kdePackages.qtmultimedia
|
kdePackages.qtmultimedia
|
||||||
|
|||||||
Reference in New Issue
Block a user