Make hyprpaper and eww reloading work properly
Additionally, add some extra wallpapers
This commit is contained in:
parent
756bbce430
commit
9137b2656f
8 changed files with 18 additions and 17 deletions
modules/home-manager
|
@ -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 = {
|
||||
|
|
|
@ -91,7 +91,7 @@ in
|
|||
'';
|
||||
|
||||
onChange = (pkgs.writeShellScript "reload_hyprpaper" ''
|
||||
systemctl --user restart hyprpaper.service
|
||||
${pkgs.systemd}/bin/systemctl --user restart hyprpaper.service
|
||||
'').outPath;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue