forked from mirrors_public/oddlama_nix-config
feat: enable swww for wallpapers
This commit is contained in:
parent
870a8b122e
commit
30a851a7c1
2 changed files with 40 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
./waybar.nix
|
||||
./rofi.nix
|
||||
./swaync.nix
|
||||
./swww.nix
|
||||
]
|
||||
++ lib.optionals nixosConfig.graphical.gaming.enable [
|
||||
./games
|
||||
|
|
39
users/myuser/graphical/swww.nix
Normal file
39
users/myuser/graphical/swww.nix
Normal 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"];};
|
||||
#};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue