Make it so hyprpaper reloads on config changes
This commit is contained in:
parent
6aea9045c7
commit
7c495bceb8
|
@ -83,11 +83,17 @@ in
|
||||||
lib.platforms.linux)
|
lib.platforms.linux)
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
xdg.configFile."hypr/hyprpaper.conf" = {
|
||||||
${lib.concatStringsSep "\n" (lib.forEach cfg.preload (image: "preload=${image}"))}
|
text = ''
|
||||||
${lib.concatStringsSep "\n" (lib.forEach cfg.wallpapers mkWallpaper)}
|
${lib.concatStringsSep "\n" (lib.forEach cfg.preload (image: "preload=${image}"))}
|
||||||
splash=true
|
${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 = {
|
systemd.user.services.hyprpaper = {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
|
Loading…
Reference in a new issue