fix: wallpaper size

This commit is contained in:
Daniel Langbein 2024-09-22 14:03:36 +02:00
parent e71fe0f36b
commit 28c12949de
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -1,7 +1,7 @@
{ pkgs, lib }: { pkgs, lib }:
let let
# Width of our display. # Width of our display.
max-width = "1080"; max-width = "1920";
in in
pkgs.stdenv.mkDerivation rec{ pkgs.stdenv.mkDerivation rec{
name = "yoda-wallpaper"; name = "yoda-wallpaper";
@ -13,7 +13,7 @@ in
installPhase = '' installPhase = ''
set -eu -o pipefail set -eu -o pipefail
mkdir -p $out mkdir -p $out
${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' -quality 85% -interlace Plane -strip $out/img.jpg ${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' -quality 90% -interlace Plane -strip $out/img.jpg
${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' $out/img.png ${pkgs.imagemagick}/bin/magick $src -resize '${max-width}>' $out/img.png
''; '';
} }