LinuxCommandLibrary

xephyr

Nested X server in a window

TLDR

Start nested X server

$ Xephyr :1
copy
With resolution
$ Xephyr -screen [800x600] :1
copy
Full screen
$ Xephyr -fullscreen :1
copy
Multiple screens
$ Xephyr -screen [800x600] -screen [800x600] :1
copy
Resizable
$ Xephyr -resizeable :1
copy

SYNOPSIS

Xephyr [-screen WxH] [-fullscreen] [options] :display

DESCRIPTION

Xephyr is a kdrive-based X server that runs as a window inside an existing X session. It creates a fully functional, isolated X display that appears as a regular window on your desktop, allowing you to run a complete X environment within it.
The primary use case for Xephyr is testing and developing window managers, desktop environments, and X11 applications in a sandboxed environment. Developers can start a new window manager inside Xephyr without disrupting their current desktop session, making it safe to experiment with configurations and test changes.
Xephyr supports configurable screen resolutions, fullscreen mode, multiple virtual screens, and resizable windows. It provides complete display isolation from the host X server, so applications running inside Xephyr cannot interact with the host display.

PARAMETERS

-screen WxH

Screen size.
-fullscreen
Full screen mode.
-resizeable
Allow resize.
-no-host-grab
No keyboard grab.
:display
Display number.

CAVEATS

X11 only. No Wayland. Display must be free.

HISTORY

Xephyr was created as a modern kdrive-based X server that runs in a window for development and testing.

SEE ALSO

Xnest(1), Xvfb(1), startx(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community