From 67bfc3132cea0a6ce9918da9c2c68794fb79162e Mon Sep 17 00:00:00 2001 From: triethyl Date: Sat, 17 Jan 2026 20:40:51 -0500 Subject: niri: add waypaper --- docs/todo.md | 2 +- .../features/gui/desktops/niri/default.nix | 1 + .../features/gui/desktops/niri/parts/waypaper.nix | 26 ++++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 home-manager/features/gui/desktops/niri/parts/waypaper.nix diff --git a/docs/todo.md b/docs/todo.md index ebc20d1..7f4272f 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -14,9 +14,9 @@ - Set niri background to full black and do a screen transition at startup to fade in the wallpaper and bar - replace plymouth loading screen - replace sddm with greetd -- add waypaper to niri - configure sunsetr to start dimming later - add keyboard layout to waybar +- fix niri clipboard picker ## Eventual diff --git a/home-manager/features/gui/desktops/niri/default.nix b/home-manager/features/gui/desktops/niri/default.nix index 14a045b..faf2f85 100755 --- a/home-manager/features/gui/desktops/niri/default.nix +++ b/home-manager/features/gui/desktops/niri/default.nix @@ -20,6 +20,7 @@ in { quickshell.enable = true; iota-maker.enable = true; sunsetr.enable = true; + waypaper.enable = true; }; }; } diff --git a/home-manager/features/gui/desktops/niri/parts/waypaper.nix b/home-manager/features/gui/desktops/niri/parts/waypaper.nix new file mode 100644 index 0000000..3709bf6 --- /dev/null +++ b/home-manager/features/gui/desktops/niri/parts/waypaper.nix @@ -0,0 +1,26 @@ +{ config, pkgs, lib, ... }: let + cfg = config.features.gui.desktops.niri.parts.waypaper; + aes = config.aesthetics; +in { + options.features.gui.desktops.niri.parts.waypaper.enable = lib.mkEnableOption "waypaper"; + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + waypaper + ]; + home.file."waypaper-config" = { + target = ".config/waypaper/config.ini"; + source = lib.generators.toINI {} { + folder = aes.wallpapersDir; + wallpaper = aes.wallpaper; + zen_mode = true; + subfolders = true; + + swww_transition_type = "wipe"; + swww_transition_step = 63; + swww_transition_angle = 0; + swww_transition_duration = 2; + swww_transition_fps = 60; + }; + }; + }; +} -- cgit v1.2.3