- Burn raspios image on card - the one with desktop (no need to additional software) - tested using
2023-12-05-raspios-bookworm-arm64.img
on RPi4 & RPi5. - Install few additional packages to build a wayland plugin that hide cursor
sudo apt install libglibmm-2.4-dev libglm-dev libxml2-dev libpango1.0-dev libcairo2-dev wayfire-dev libwlroots-dev libwf-config-dev meson
- Clone github repo: https://github.com/saper-2/wayfire-plugins-extra , and compile plugins (but not install them)
git clone https://github.com/WayfireWM/wayfire-plugins-extra && cd wayfire-plugins-extra meson build --prefix=/usr --buildtype=release ninja -C build
- Copy compiled plugin and it's config to designated dirs so wayfire can find it.
~/wayfire-plugins-extra $ sudo cp build/src/libhide-cursor.so /usr/lib/aarch64-linux-gnu/wayfire/ ~/wayfire-plugins-extra $ sudo cp metadata/hide-cursor.xml /usr/share/wayfire/metadata/
Create kiosk.sh
script that will launch chromium-browser - it's content is in next file. Set your <kiosk-url>
. I'm using pi
user.
nano /home/pi/kiosk.sh
chmod +x /home/pi/kiosk.sh
-
Edit wayland/wayfire user configuration file so when desktop load it will lauch
kiosk.sh
script and start chromium in full-screen mode.nano ~/.config/wayfire.ini
Find section
[autostart]
, if not exists then create at end file this section and add option - option name can be anything (without spaces & special characters) - I just usedkiosk
. as option value enter full path to thekiosk.sh
script.[autostart] kiosk = /home/pi/kiosk.sh
-
Now look for section
[core]
if it's not exists create it, and tell wayland what plugins you want for it to load:[core] plugins = autostart hide-cursor
This'll also disable all bars, desktop background, app menu (a.k.a. from M$win 'Start menu') & quick launch toolbar, clock, tray, etc..., you'll have only chromium-window launched. So there is no need to to fiddle with LXDE-pi config files and disable menus, desktop bg, etc... 👍
-
Save file and reboot, should work.