swaybg: move to systemd service

This commit is contained in:
Rouven Seifert 2024-03-11 23:21:22 +01:00
parent 0655bc7be8
commit f32125afb7
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 13 additions and 5 deletions

View file

@ -60,6 +60,18 @@
};
};
systemd.user.services.swaybg = {
Unit = {
Description = "Wallpaper tool for Wayland compositors";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.swaybg}/bin/swaybg -i ${../../../../images/wallpaper.png} -m fill";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
services.wlsunset = {
enable = true;
longitude = "13";