From bdaa3743831168787f528570f2b87963e72a2f23 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 7 Jan 2026 10:04:09 -0600 Subject: [PATCH] tests/hyprpaper: update basic configuration Show the newer format and test the proper generation of config. Signed-off-by: Austin Horstman --- .../hyprpaper/basic-configuration.nix | 17 +++++++++++++++-- .../modules/services/hyprpaper/hyprpaper.conf | 19 +++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/tests/modules/services/hyprpaper/basic-configuration.nix b/tests/modules/services/hyprpaper/basic-configuration.nix index ca264c3e9..24fd4370c 100644 --- a/tests/modules/services/hyprpaper/basic-configuration.nix +++ b/tests/modules/services/hyprpaper/basic-configuration.nix @@ -12,8 +12,21 @@ ]; wallpaper = [ - "DP-3,/share/wallpapers/buttons.png" - "DP-1,/share/wallpapers/cat_pacman.png" + { + monitor = "DP-3"; + path = "/share/wallpapers/buttons.png"; + fit_mode = "cover"; + } + { + monitor = "DP-2"; + path = "/share/wallpapers/cat_pacman.png"; + fit_mode = "cover"; + } + { + monitor = ""; + path = "~/fallback.jxl"; + fit_mode = "cover"; + } ]; }; }; diff --git a/tests/modules/services/hyprpaper/hyprpaper.conf b/tests/modules/services/hyprpaper/hyprpaper.conf index 1791dad9b..214ae510c 100644 --- a/tests/modules/services/hyprpaper/hyprpaper.conf +++ b/tests/modules/services/hyprpaper/hyprpaper.conf @@ -1,8 +1,23 @@ preload=/share/wallpapers/buttons.png preload=/share/wallpapers/cat_pacman.png -wallpaper=DP-3,/share/wallpapers/buttons.png -wallpaper=DP-1,/share/wallpapers/cat_pacman.png +wallpaper { + monitor=DP-3 + fit_mode=cover + path=/share/wallpapers/buttons.png +} + +wallpaper { + monitor=DP-2 + fit_mode=cover + path=/share/wallpapers/cat_pacman.png +} + +wallpaper { + monitor= + fit_mode=cover + path=~/fallback.jxl +} ipc=on splash=false splash_offset=2.000000