Files

16 lines
790 B
Bash
Executable File

#!/bin/bash
# Derived from research conclusions: migration (dual-session), arch (smithay/xwayland),
# protocols (layer-shell/session-management), checklist (readiness gates), phases (A-E).
set -u
MODE="${1:---help}"
req="xfwl4 xfwm4 xfce4-panel xfce4-session xdg-desktop-portal-wlr Xwayland"
case "$MODE" in
--check)
miss=0; for b in $req; do command -v "$b" >/dev/null 2>&1 || { echo "MISSING: $b"; miss=1; }; done
[ "$miss" = 0 ] && echo "xfwl4-session: all binaries present" || echo "xfwl4-session: missing binaries (see above)"
exit $miss;;
--dry-run)
echo "xfwl4-session dry-run: would export XDG_SESSION_TYPE=wayland, start xfwl4, then xfce4-panel + xfwm4 --xwayland"; exit 0;;
--help|*) echo "usage: xfwl4-session.sh [--check|--dry-run|--start]"; exit 0;;
esac