add hostname to background image
This commit is contained in:
parent
ecdbed74dc
commit
9e0f37accd
1 changed files with 7 additions and 3 deletions
|
@ -31,9 +31,13 @@ let
|
|||
${pkgs.coreutils-full}/bin/head -n 1 | \
|
||||
${pkgs.gawk}/bin/awk -F 'x' '{print "--width="$1" --height="$2}' | \
|
||||
${pkgs.findutils}/bin/xargs \
|
||||
${pkgs.polygon-art.polygon-art}/bin/rings \
|
||||
/dev/shm/background.png && \
|
||||
${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png
|
||||
${pkgs.polygon-art.polygon-art}/bin/rings \
|
||||
/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
|
||||
|
|
Loading…
Reference in a new issue