mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 08:28:31 +02:00
swaybg: move to systemd service
This commit is contained in:
parent
0655bc7be8
commit
f32125afb7
3 changed files with 13 additions and 5 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue