diff options
| author | triethyl <triethylammonium@pm.me> | 2025-10-19 19:51:32 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-10-19 19:51:32 -0400 |
| commit | 9d929275cadf393b5dcce986cc5280755d373f6a (patch) | |
| tree | f58c4d4cc6ce333c1c27e70364eeaf4acdbfe55b /home-manager/features/gui/desktops/niri/parts/swww.nix | |
| parent | 0152f90358f475c1ea7101f16b7812506fe813d2 (diff) | |
niri: updated many things
Diffstat (limited to 'home-manager/features/gui/desktops/niri/parts/swww.nix')
| -rwxr-xr-x | home-manager/features/gui/desktops/niri/parts/swww.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/home-manager/features/gui/desktops/niri/parts/swww.nix b/home-manager/features/gui/desktops/niri/parts/swww.nix index dca163b..ce4002c 100755 --- a/home-manager/features/gui/desktops/niri/parts/swww.nix +++ b/home-manager/features/gui/desktops/niri/parts/swww.nix @@ -1,8 +1,18 @@ { config, pkgs, lib, ... }: let cfg = config.features.gui.desktops.niri.parts.swww; + aes = config.aesthetics; in { options.features.gui.desktops.niri.parts.swww.enable = lib.mkEnableOption "swww"; config = lib.mkIf cfg.enable { - home.packages = [pkgs.swww]; + home.packages = [ + pkgs.swww + (pkgs.writers.writeNuBin "swww-init" '' + niri msg action spawn -- swww-daemon + + if not ("~/.cache/swww" | path expand | path exists) { + swww img ${aes.wallpaper} + } + '') + ]; }; } |
