feat: enable swww for wallpapers

This commit is contained in:
oddlama 2024-06-12 23:41:44 +02:00
parent 870a8b122e
commit 30a851a7c1
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 40 additions and 0 deletions

View file

@ -23,6 +23,7 @@
./waybar.nix
./rofi.nix
./swaync.nix
./swww.nix
]
++ lib.optionals nixosConfig.graphical.gaming.enable [
./games

View file

@ -0,0 +1,39 @@
{pkgs, ...}: {
systemd.user = {
services = {
swww = {
Unit = {
Description = "Wayland wallpaper daemon";
PartOf = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.swww}/bin/swww-daemon";
Restart = "on-failure";
};
Install.WantedBy = ["graphical-session.target"];
};
#swww-random = {
# Unit = {
# Description = "switch random wallpaper powered by swww";
# };
# Service = {
# Type = "oneshot";
# ExecStart = "${pkgs.swww-switch}/bin/swww-switch random";
# };
# Install = {
# WantedBy = ["default.target"];
# };
#};
};
#timers.swww-random = {
# Unit = {
# Description = "switch random wallpaper powered by swww timer";
# };
# Timer = {
# OnUnitActiveSec = "60min";
# OnBootSec = "60min";
# };
# Install = {WantedBy = ["timers.target"];};
#};
};
}