mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Add random wallpaper
This commit is contained in:
parent
fc14a394aa
commit
b1fdab737c
4 changed files with 46 additions and 23 deletions
|
|
@ -14,6 +14,7 @@ in {
|
|||
./productivity.nix
|
||||
./media.nix
|
||||
./zen.nix
|
||||
./theme.nix
|
||||
];
|
||||
|
||||
mods.hyprland.enable = lib.mkIf cfg.wayland.enable true;
|
||||
|
|
|
|||
24
modules/home/desktop/theme.nix
Normal file
24
modules/home/desktop/theme.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.mods.theme.slideshow;
|
||||
in {
|
||||
options.mods.theme.slideshow = {
|
||||
enable = lib.mkEnableOption "enables slideshow wallpaper";
|
||||
folder = lib.mkOption {
|
||||
default = "%h/misc/pictures/wallpapers";
|
||||
description = "slideshow wallpaper folder";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.random-background = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
imageDirectory = cfg.folder;
|
||||
enableXinerama = true;
|
||||
interval = "1s";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue