[
{ type: install
  message: <<EOM
Native Wayland on top of KMS console:

  $ export XDG_RUNTIME_DIR=$(mktemp -dt run)
  $ dbus-daemon --session --fork --address=unix:runtime=yes
  $ seatd-launch kwin_wayland

Native X11 on top of Xorg:

  $ echo "exec dbus-run-session kwin_x11" >~/.xinitrc
  $ startx

Nested under Wayland as Wayland window manager:

  $ kwin_wayland

Nested under Wayland as X11 window manager:

  $ Xwayland :8 &
  $ DISPLAY=:8 kwin_x11

Nested under X11 as Wayland window manager:

  $ cage kwin_wayland

Nested under X11 as X11 window manager:

  $ Xephyr :8 &
  $ DISPLAY=:8 kwin_x11

Replace KWin in Plasma Desktop:

  $ pkg set -n plasma6-kwin:theseus-ship
  $ pkg set -o x11-wm/plasma6-kwin:x11-wm/theseus-ship
  $ pkg upgrade -f theseus-ship
  $ pkg lock theseus-ship

Improve Wayland responsiveness under high load:

  $ sysrc kld_list+=mac_priority
  $ service kld restart
  $ pw groupmod realtime -m <user>
  $ exit # log out to refresh group permissions
EOM
}
]
