Make it so hyprpaper reloads on config changes
This commit is contained in:
parent
6aea9045c7
commit
7c495bceb8
|
@ -83,12 +83,18 @@ in
|
|||
lib.platforms.linux)
|
||||
];
|
||||
|
||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
||||
xdg.configFile."hypr/hyprpaper.conf" = {
|
||||
text = ''
|
||||
${lib.concatStringsSep "\n" (lib.forEach cfg.preload (image: "preload=${image}"))}
|
||||
${lib.concatStringsSep "\n" (lib.forEach cfg.wallpapers mkWallpaper)}
|
||||
splash=true
|
||||
'';
|
||||
|
||||
onChange = (pkgs.writeShellScript "reload_hyprpaper" ''
|
||||
systemctl --user restart hyprpaper.service
|
||||
'').outPath;
|
||||
};
|
||||
|
||||
systemd.user.services.hyprpaper = {
|
||||
Unit = {
|
||||
Description = "Hyprland wallpaper daemon";
|
||||
|
|
Loading…
Reference in a new issue