added automatic wallpaper setting
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
wallpaperWatch = pkgs.writeShellScriptBin "wallpaper-watch"
|
||||
(builtins.readFile ../scripts/wallpaper-watch.sh);
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
wallpaperWatch
|
||||
];
|
||||
|
||||
systemd.user.services.wallpaper-watcher = {
|
||||
Unit = {
|
||||
Description = "Dynamic wallpaper watcher";
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${wallpaperWatch}/bin/wallpaper-watch";
|
||||
Restart = "always";
|
||||
RestartSec = 2;
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user