Highest-impact optimizations for a responsive coding desktop on Android.
Agent skill: optional x11-desktop (grokhunter skills install) — fix & tune playbook for Grok Build.
| Priority | Action | Effect |
|---|---|---|
| 1 | sharedUid APK (GitHub Termux only) | Stops Android from throttling Termux when X11 is foreground |
| 2 | Disable XFCE compositing | Biggest smoothness gain on proot |
| 3 | Light DE (XFCE / i3) | Less CPU/RAM than GNOME/KDE |
| 4 | Share /tmp |
Required for X sockets; already patched by --with-x11 |
| 5 | Avoid SD-card rootfs | Faster apt, editors, builds |
| 6 | Optional GPU (Turnip/Zink) | Advanced; device-specific |
| APK | Notes |
|---|---|
termux-x11-universal-debug.apk |
Works with F-Droid Termux |
termux-x11-universal-sharedUid-debug.apk |
Best performance if Termux is installed from GitHub |
Nightlies: https://github.com/termux/termux-x11/releases/tag/nightly
Inside the Kali session (or add to startup):
xfconf-query -c xfwm4 -p /general/use_compositing -s false 2>/dev/null || truenh-x11 tries this automatically when the session is startxfce4.
# Default (GrokHunter; legacy drawing on)
nh-x11
# GPU path if legacy drawing is too slow
NH_X11_LEGACY=0 nh-x11
# Manual Termux-native example
termux-x11 :0 -dpi 120 -xstartup "dbus-launch --exit-with-session xfce4-session"termux-x11-preference list
# Examples:
termux-x11-preference "fullscreen"="true"
termux-x11-preference "showAdditionalKbd"="true"Tune touchpad vs touchscreen mode from the notification / app preferences for coding with a Bluetooth keyboard.
- XFCE: Settings → Appearance → custom DPI
- Or start with
-dpi 120(or 96–160 depending on panel size)
Not required for coding (editors, terminals, browsers-lite). For GL apps:
- Adreno: community Turnip / Zink builds (device-specific packages)
- Others: VirGL / ANGLE paths vary widely in stability
See community guides (termux-desktop hw-acceleration, Turnip nightlies). GrokHunter does not auto-install GPU drivers.
# Before relaunch if session is stuck
pkill -f termux.x11 2>/dev/null || true
am force-stop com.termux.x11 2>/dev/null || trueKeep one DE running. Close heavy browsers when compiling.
# Install / refresh X11 helper
bash install.sh --with-x11
# Fast path
nh-x11Related: PROOT.md, INSTALL.md.
Brand-matched reversible skin (user xfconf only): DISPLAY=:0 bash scripts/desktop-skin.sh apply --plate og --dpi 120 --panel-slim — see scripts/desktop-skin.sh. Revert with bash scripts/desktop-skin.sh revert.
After desktop install (or anytime inside Kali):
grokhunter menu install
# or
bash scripts/install_kali_menu.shLook for Applications → GrokHunter (Grok Build, Coding Team, Scout, Aider, Doctor, Setup).
Log out/in of XFCE if the submenu does not appear immediately. Remove with grokhunter menu remove.