add hostname to background image

This commit is contained in:
Ingolf Wagner 2023-05-27 01:18:11 +02:00
parent ecdbed74dc
commit 9e0f37accd
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -33,7 +33,11 @@ let
${pkgs.findutils}/bin/xargs \ ${pkgs.findutils}/bin/xargs \
${pkgs.polygon-art.polygon-art}/bin/rings \ ${pkgs.polygon-art.polygon-art}/bin/rings \
/dev/shm/background.png && \ /dev/shm/background.png && \
${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png ${pkgs.imagemagick}/bin/convert /dev/shm/background.png \
-font ${pkgs.ubuntu_font_family}/share/fonts/ubuntu/UbuntuMono-B.ttf \
-gravity Center -pointsize 30 -annotate 0 '${config.networking.hostName}' \
/dev/shm/background_with_text.png && \
${pkgs.feh}/bin/feh --bg-scale /dev/shm/background_with_text.png
''; '';
in in