Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: Juanito on February 05, 2026, 10:50:21 AM
-
After discovering that dragging a firefox window on an RPi3 using Xorg-3d was very slow, I thought I'd try with wayland.
There are labwc and weston compositors in the repo, but labwc is perhaps easier to customise.
Create the following files (modify to suit): cat ~/.config/labwc/autostart
wlr-randr --output HDMI-A-1 --mode 1920x1080@60Hz &
swaybg -c '#87C6C9' -i /usr/local/share/pixmaps/logo.png -m center >/dev/null 2>&1 &
cat ~/.config/labwc/environment
XKB_DEFAULT_LAYOUT=gb
XKB_DEFAULT_MODEL=pc104alt
WLR_XWAYLAND=
cat ~/.config/labwc/menu.xml
<?xml version="1.0" ?>
<labwc_menu>
<menu id="root-menu" label="TinyCore">
<separator/>
<menu id="Programs" label="Applications">
<item label="Browser"><action name="Execute" command="firefox" /></item>
<item label="Terminal"><action name="Execute" command="havoc" /></item>
<item label="Text Editor"><action name="Execute" command="editor" /></item>
<item label="File Manager"><action name="Execute" command="fluff" /></item>
</menu>
<separator/>
<menu id="System" label="System Tools">
<item label="Apps"><action name="Execute" command="apps" /></item>
<item label="Control Panel"><action name="Execute" command="cpanel" /></item>
<item label="Editor"><action name="Execute" command="editor" /></item>
<item label="Exit"><action name="Execute" command="exittc" /></item>
<item label="Run Program"><action name="Execute" command="flrun" /></item>
<item label="Services"><action name="Execute" command="services" /></item>
<item label="Set Time"><action name="Execute" command="datetool" /></item>
<item label="Top"><action name="Execute" command="havoc top" /></item>
</menu>
<separator/>
<item label="Reconfigure"><action name="Reconfigure" /></item>
<item label="Exit to Prompt"><action name="Exit" /></item>
</menu>
</labwc_menu>
Then at the console prompt: tce-load -i Xprogs labwc havoc fluff swaybg wlr-randr firefox
sudo -- seatd -g staff -n /run/seatd.sock & XDG_RUNTIME_DIR=/run/user/$(id -u) labwc
Note that firefox needs (for now) to be started with: DISPLAY=wayland-0 firefox &
..and the firefox window can certainly be dragged around a lot faster :)
-
Added the labwc-config extension that will load labwc and a basic tinycore desktop.