configurable wallpaper - meta-kiosk - đź’» yocto meta-layer to build a kiosk screen
HTML git clone git@git.drkhsh.at/meta-kiosk.git
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit e4854e9befe5c0507dd578dd8b4f1085dc3f3be5
DIR parent 010cfb9349b1ae462ad667351dea92eb6a221a41
HTML Author: drkhsh <me@drkhsh.at>
Date: Fri, 27 Sep 2024 11:53:45 +0000
configurable wallpaper
Diffstat:
M recipes-core/kiosk-autostart/files… | 2 +-
D recipes-core/user-kiosk/files/skyn… | 0
A recipes-core/user-kiosk/files/wall… | 0
M recipes-core/user-kiosk/user-kiosk… | 8 +++++---
4 files changed, 6 insertions(+), 4 deletions(-)
---
DIR diff --git a/recipes-core/kiosk-autostart/files/session b/recipes-core/kiosk-autostart/files/session
@@ -2,7 +2,7 @@
. /data/config/kiosk
-feh --bg-fill /usr/share/wallpapers/skynet.png
+feh --bg-fill /usr/share/wallpapers/wallpaper.png
xset s off > /dev/null 2>&1 # don't activate screensaver
xset -dpms > /dev/null 2>&1 # disable DPMS (Energy Star) features.
DIR diff --git a/recipes-core/user-kiosk/files/skynet-wallpaper.png b/recipes-core/user-kiosk/files/skynet-wallpaper.png
Binary files differ.
DIR diff --git a/recipes-core/user-kiosk/files/wallpaper.png b/recipes-core/user-kiosk/files/wallpaper.png
Binary files differ.
DIR diff --git a/recipes-core/user-kiosk/user-kiosk.bb b/recipes-core/user-kiosk/user-kiosk.bb
@@ -5,9 +5,11 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
PROVIDES = "user-kiosk"
RPROVIDES:${PN} = "user-kiosk"
+KIOSK_WALLPAPER ?= "wallpaper.png"
+
FILESEXTRAPATHS:prepend = "${THISDIR}/files:"
-SRC_URI = " file://skynet-wallpaper.png"
+SRC_URI = " file://${KIOSK_WALLPAPER}"
inherit useradd
USERADD_PARAM:${PN} = " \
@@ -18,7 +20,7 @@ USERADD_PACKAGES = "${PN}"
do_install:append () {
install -d -m 0755 ${D}/usr/share/wallpapers
- install -m 0644 ${WORKDIR}/skynet-wallpaper.png ${D}/usr/share/wallpapers/skynet.png
+ install -m 0644 ${WORKDIR}/${KIOSK_WALLPAPER} ${D}/usr/share/wallpapers/wallpaper.png
}
-FILES:${PN} = "/usr/share/wallpapers/skynet.png"
+FILES:${PN} = "/usr/share/wallpapers/wallpaper.png"