1
Fork 0

Make hyprpaper and eww reloading work properly

Additionally, add some extra wallpapers
This commit is contained in:
Matei Adriel 2023-11-14 17:49:12 +01:00
parent 756bbce430
commit 9137b2656f
No known key found for this signature in database
8 changed files with 18 additions and 17 deletions
modules/home-manager

View file

@ -7,7 +7,7 @@
}:
let
reloadScript = pkgs.writeShellScript "reload_eww" ''
systemctl --user restart eww.service
${pkgs.systemd}/bin/systemctl
'';
cfg = config.programs.eww-hyprland;
@ -51,10 +51,7 @@ in
xdg.configFile."eww/eww.yuck" = {
text = cfg.extraConfig or "";
onChange =
if cfg.autoReload
then reloadScript.outPath
else "";
onChange = lib.mkIf cfg.autoReload reloadScript.outPath;
};
systemd.user.services.eww = {

View file

@ -91,7 +91,7 @@ in
'';
onChange = (pkgs.writeShellScript "reload_hyprpaper" ''
systemctl --user restart hyprpaper.service
${pkgs.systemd}/bin/systemctl --user restart hyprpaper.service
'').outPath;
};