From dd559bfcf085518a1a80d104aa2a3a0e94c3cbf7 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Mon, 12 Jun 2023 01:06:16 +0200 Subject: [PATCH] Fix imagemagick's convert not behaving exactly like feh Signed-off-by: Magic_RB --- home-manager/modules/screenlocker/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/modules/screenlocker/default.nix b/home-manager/modules/screenlocker/default.nix index 9f6337c..a370410 100644 --- a/home-manager/modules/screenlocker/default.nix +++ b/home-manager/modules/screenlocker/default.nix @@ -18,7 +18,7 @@ let if ! [[ -e "$IMAGEFILE" ]] then - convert "$HOME/.config/wallpaper" -gravity Center -background "#000000" -extent "$SCREEN_RESOLUTION" "$IMAGEFILE" + convert "$HOME/.config/wallpaper" -gravity Center -background "#000000" -resize "$SCREEN_RESOLUTION^" -extent "$SCREEN_RESOLUTION" "$IMAGEFILE" fi if [[ -e /dev/fd/''${XSS_SLEEP_LOCK_FD:--1} ]]; then