In this guide artix linux will be used as an example :
First install termux-x11 apk file.
pkg install termux-x11-nightly
Find the minirootfs file from your distro, for example armtix
su
mkarch -t <filepath> artix
charch -n artix
pacman -Syu
pacman -S xfce4
XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 -ac &
su
setenforce 0
busybox mount --bind /data/data/com.termux/files/usr/tmp /data/unencrypted/charch/rootfs/tmp
- Start chroot
charch -n artix
export DISPLAY=:0
xfce4-session &
Now open the termux-x11 app, it should work!
🥇