1
Fork 0

Make it so hyprpaper reloads on config changes

This commit is contained in:
Matei Adriel 2023-11-13 04:16:36 +01:00
parent 6aea9045c7
commit 7c495bceb8
No known key found for this signature in database

View file

@ -83,11 +83,17 @@ in
lib.platforms.linux)
];
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
'';
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 = {