Switch to uwsm

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-03 13:00:07 +01:00
parent 1f44a8b6bc
commit b12fa0e811
19 changed files with 153 additions and 190 deletions

View File

@@ -34,21 +34,19 @@ in
systemd.user.services.swww = {
Unit = {
Description = "Wallpaper daemon";
BindsTo = [ "graphical-session.target" ];
After = [
"graphical-session.target"
config.environment.persistence."/persist/cache"."${home}/.cache/swww".mount
];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "forking";
ExecStart = lib.meta.getExe (
pkgs.writeShellApplication {
name = "init-swww";
runtimeInputs = with pkgs; [ swww ];
text = "exec swww init";
text = "exec swww-daemon -q";
}
);
@@ -61,6 +59,8 @@ in
text = "exec swww kill";
}
);
Restart = "on-failure";
};
Install.WantedBy = [ "graphical-session.target" ];