2 # Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/47-update-wallpaper
3 # Purpose: Update the grml wallpaper
4 # Authors: grml-team (grml.org)
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 ################################################################################
11 FONTFILE=${FONTFILE:-/usr/share/grml-live/fonts/graphicoreBitmapFont0-Light.otf}
12 TITLE_FONTSIZE=${TITLE_FONTSIZE:-200}
13 VERSION_FONTSIZE=${VERSION_FONTSIZE:-100}
14 GRML_BG=${GRML_BG:-$target/usr/share/grml/desktop-bg.png}
15 GRML_WALLPAPER=${GRML_WALLPAPER:-$target/usr/share/grml/desktop.jpg}
17 if [ ! -x "$(which convert)" ]; then
18 echo "convert not installed, skipping wallpaper."
22 echo "Creating standard wallpaper"
24 convert "$GRML_BG" -gravity center \
25 -fill white -font "$FONTFILE" \
26 -pointsize $TITLE_FONTSIZE \
27 -draw "text 0,0 \"$GRML_NAME\"" \
28 -pointsize $VERSION_FONTSIZE \
29 -draw "text 0,$((TITLE_FONTSIZE+50)) \"$VERSION\"" "$GRML_WALLPAPER"